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