Keyboard 当键盘出现时,向上滑动带有输入文本的固定页脚
我正在尝试向上滑动我的应用程序的某些部分 我搜索了一些信息,在Stackoverflow中找到了这篇文章-> 问题是我的应用程序有点不同,我不知道把Scrollview标签放在哪里 我得到了这个分布:Keyboard 当键盘出现时,向上滑动带有输入文本的固定页脚,keyboard,react-native,keyboard-events,Keyboard,React Native,Keyboard Events,我正在尝试向上滑动我的应用程序的某些部分 我搜索了一些信息,在Stackoverflow中找到了这篇文章-> 问题是我的应用程序有点不同,我不知道把Scrollview标签放在哪里 我得到了这个分布: <View style={ styles.container }> <View style={ styles.header }> <View style={ styles.headerTextContainer }> <Text s
<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>
this.refs.listView.getScrollResponder().scrollTo(0)}>Parte{this.props.partNumber}-{this.state.totalComments}comentarios
console.log(文本)}
占位符=“描述不符合条件”/>
console.log(“发送注释”)}underlayColor=“#ffffff”>
羡慕
当键盘出现时,我唯一想向上滑动的是页脚视图
我希望有人能帮助我
谢谢:)我可以通过使用此组件完成此操作: 谢谢