react native - Slide up fixed footer with input text when keyboard appears -


i'm trying slide part of app.

i searched info , found out post here in stackoverflow -> how auto-slide window out behind keyboard when textinput has focus?

the thing app little bit different , don't know put scrollview tags.

i got distribution:

<view style={ styles.container }>   <view style={ styles.header }>     <view style={ styles.headertextcontainer }>       <text style={ styles.headertext } onpress={() => this.refs.listview.getscrollresponder().scrollto(0) }>parte { this.props.partnumber } - { this.state.totalcomments } comentarios</text>     </view>   </view>    <listview          datasource={this.state.datasource}          renderrow={this.rendercomment}         style={ styles.content }          ref="listview" />    <view style={ styles.footer }>     <view style={ styles.footertextinputcontainer }>       <textinput         style={ styles.footertextinput }         onchangetext={(text) => console.log(text) }         placeholder="escribe un comentario" />     </view>      <touchablehighlight onpress={() => console.log("send comment") } underlaycolor="#ffffff">       <view style={ styles.footersendbuttoncontainer }>         <text style={ styles.footersendbutton }>enviar</text>       </view>     </touchablehighlight>   </view> </view> 

the thing want slide when keyboard appears footer view.

i hope can me out.

thank :)

i able using component: react-native-keyboard-spacer

thanks!


Comments