react native - Getting issue in android if keyboard appear -


hai designed registration page, wrote code 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 password"                               returnkeytype='done'                               value={this.state.confirmpassword}                               onsubmitediting={(event)=>{                                         this.onregister();                                        }}                            onfocus={this.inputfocused.bind(this, 'confirmpassword')}                              onchange={this.handlechange.bind(this,'confirmpassword')}/>   ) } 

here problem facing when click on textinput in on focus scrolling view up, wrote scroll view below navigation bar, when click on textinput, scrolls view up, in ios code working correctly, in android when keyboard appear moves total view up, below attcahed image of issue facing enter image description here

can 1 give me suggestions how resolve it, appreciated


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -