APSL / react-native-keyboard-aware-scroll-view

A ScrollView component that handles keyboard appearance and automatically scrolls to focused TextInput.
MIT License
5.24k stars 643 forks source link

Buttons inside KeyboardAwareScrollView #434

Open mayooresan opened 4 years ago

mayooresan commented 4 years ago

I have a TextINput and Button inside KeyboardAwareScrollView horizontally next to each other. Problem is I have to tap twice to get the button to trigger the tap event.

  1. First tap on the button: keyboard dismisses (even though its done of the button)
  2. Second tap on the button: Button touch onPress getting triggered

Is it possible to have them happen on the first tap itself

xiaohui-hiwintech commented 4 years ago

please refer to #233 . keyboardShouldPersistTaps="handled" works for me

dutradotdev commented 1 year ago

worked for me. thanks!