hai i designed a some registration page, For that i wrote a code like this
inputFocused (refName) {
let android = Platform.OS == 'android'
if(Platform.OS == android){
let scrollResponder = this.refs.scrollView.getScrollResponder();
scrollResponder.scrollTo({y: windowSize.height/4})
}
else{
let scrollResponder = this.refs.scrollView.getScrollResponder();
scrollResponder.scrollTo({y: windowSize.height/3})
}
}
render{
return(
<TextInput
ref='SixthInput'
style={styles.textInput1}
secureTextEntry={true}
placeholder="Confirm Your Password"
returnKeyType='done'
value={this.state.confirmpassword}
onSubmitEditing={(event)=>{
this.onRegister();
}}
onFocus={this.inputFocused.bind(this, 'confirmpassword')}
onChange={this.handleChange.bind(this,'confirmpassword')}/>
)
}
here the problem facing is when click on textInput in on Focus i am scrolling the view up, I wrote the scroll View below the navigation bar, When click on Textinput, It scrolls the view up, in IOS my code is working correctly, but in android when keyboard appear it moves the total View up, Below attcahed the image of issue which i am facing
can any one give me suggestions that how to resolve it, Any help much appreciated