标签:iss render inpu keyboard onsubmit react exti dismiss 输入
...
render(){
<View>
<TextInput
onSubmitEditing={Keyboard.dismiss}
/>
</View>
}
...
如上:只要在onsubmitEditing中调用Keyboard.dismiss就好了
React Native TextInput 提交时/return时 如何隐藏输入光标
标签:iss render inpu keyboard onsubmit react exti dismiss 输入
原文地址:http://www.cnblogs.com/codetime/p/7133098.html