解决TextInput点击输入框外面没有触发onBlur
在大的view外面套一个触发事件
<TouchableWithoutFeedback
style={{ flex: 1 }}
onPress={() => {
this.textInputName.blur();
}}
>
...
<TextInput
ref= {(ref)=>this.textInputName = ref}
/>
...
</TouchableWithoutFeedback>