【发布时间】:2020-01-10 06:23:32
【问题描述】:
问题:在动态填充列表中选择输入框时,键盘会立即消失。仅在选择页面底部附近的输入框时发生。
发生于:Android(适用于 ios)
这个应用是用 Expo 创建的,我还没有退出。
当前使用的是 KeyboardAwareFlatlist,但是如果我将其切换为 FlatList,问题仍然存在。下面是 TextInput 的代码。如果您想要任何其他代码,请告诉我。
<TextInput
style={{
color: 'black',
backgroundColor: 'white',
padding: 5,
fontSize: 16,
marginBottom: 10,
}}
keyboardType={'numeric'}
returnKeyType='done'
onChangeText={(text) => this.setDuration(text, index)}
value={item.duration.toString()}
/>
问题视频:https://www.youtube.com/watch?v=U3Ps_tz4Uxw&feature=youtu.be
【问题讨论】:
标签: reactjs keyboard native expo react-native-flatlist