...
render(){
<View>
<TextInput
value=‘text input‘
onSubmitEditing={Keyboard.dismiss}
/>
</View>
}
...
如上:只要在onsubmitEditing中调用Keyboard.dismiss就好了
时间: 2024-10-10 02:02:17
...
render(){
<View>
<TextInput
value=‘text input‘
onSubmitEditing={Keyboard.dismiss}
/>
</View>
}
...
如上:只要在onsubmitEditing中调用Keyboard.dismiss就好了