Can't tap from one TextInput to another

后端 未结 2 1279
无人共我
无人共我 2021-01-20 10:57

When I\'m focused in one TextInput, tapping in another TextInput field doesn\'t do what I\'d expect (change focus to that Te

相关标签:
2条回答
  • 2021-01-20 11:35

    You Can Use Resign First Responder using TextInput Delegate Method

    0 讨论(0)
  • 2021-01-20 11:38

    You need to add keyboardShouldPersistTaps={true} to you ScrollView.

    keyboardShouldPersistTaps bool:

    When false, tapping outside of the focused text input when the keyboard is up dismisses the keyboard. When true, the scroll view will not catch taps, and the keyboard will not dismiss automatically. The default value is false.

    0 讨论(0)
提交回复
热议问题