【发布时间】:2017-06-05 09:33:33
【问题描述】:
我有一个提交表单界面,使用ListView组件,并且行包含TextInput组件,我想使用KeyboardAvoidingView以避免键盘cover行中的TextInput,但是它不起作用,该行没有向上移动。
我的代码:
render() {
return (
<KeyboardAvoidingView style={styles.container} behavior='padding'>
<ListView
dataSource = {this.state.dataSource}
renderRow = {this._renderRow.bind(this)}
onEndReachedThreshold = {0}
overflow = 'hidden'
keyboardDismissMode = 'on-drag'
removeClippedSubviews = {true}
/>
</KeyboardAvoidingView>
);
}
【问题讨论】:
标签: ios listview react-native