React-native-keyboard-aware-scroll-view: KeyboardAwareScrollView stopping event from propagating on android only.

Created on 7 Nov 2017  路  2Comments  路  Source: APSL/react-native-keyboard-aware-scroll-view

I have a minor problem with not being able to focus a TextInput or a button, when a TextInput is already focused. I believe the view is taking the event meant for the other components and stopping propagation.
Behaviour on iOS:
Click TextInput -> keyboard shows -> Click another TextInput -> keyboard stays and the other Text input is now focused.
This is the behaviour i want, but on Android it is:
Click TextInput -> keyboard shows -> Click another TextInput -> keyboard hides TextInput loses focus -> click another TextInput again -> keyboard shows and the TextInput is focused.

Does anyone have a fix for this, or is this just the way it is on android?

Most helpful comment

Thanks! I fixed it with the keyboardShouldPersistTaps='handled'

All 2 comments

I think you should play with the ScrollView props, this is due to either softInputMode or http://facebook.github.io/react-native/releases/next/docs/scrollview.html#keyboardshouldpersisttaps

Thanks! I fixed it with the keyboardShouldPersistTaps='handled'

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shimil2017 picture shimil2017  路  3Comments

EdwardDrapkin picture EdwardDrapkin  路  4Comments

FraserHamilton picture FraserHamilton  路  4Comments

brunolemos picture brunolemos  路  3Comments

yasaricli picture yasaricli  路  3Comments