在大的view外面套一个触发事件

<TouchableWithoutFeedback
  style={{ flex: 1 }}
  onPress={() => {
    this.textInputName.blur();
  }}
>

...

  <TextInput
    ref= {(ref)=>this.textInputName = ref}
  />

...

</TouchableWithoutFeedback>

相关文章:

  • 2022-12-23
  • 2022-02-07
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-28
  • 2021-11-17
  • 2021-10-05
  • 2021-11-29
  • 2021-05-13
  • 2022-12-23
相关资源
相似解决方案