问题: 在动态填充的列表中选择输入框时,键盘会立即消失。仅在选择页面底部附近的输入框时发生。
出现在: 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
意思是在IT技术领域中,提供一个问题视频链接。