halilb / react-native-textinput-effects

Text inputs with custom label and icon animations for iOS and android. Built with react native and inspired by Codrops.
MIT License
2.99k stars 293 forks source link

Can't tap on one field when another field is focused. Need to tap twice. #22

Closed THPubs closed 7 years ago

THPubs commented 7 years ago

Hi, In many apps, if we try to switch between input fields in a form with multiple form fields by tapping on the second field, the field we currently on will loose focus and the tapped field will be focused. But while using this plugin, it won't happen like this. If we tap on a second field, the already focused field will loose focus and the keyboard will hide. But the tapped field will not be focused. We have to tap on it again! How can I fix this?

THPubs commented 7 years ago

Looks like it's a react-native ScrollView issue :-) Fixed with ScrollView's keyboardShouldPersistTaps props and Keyboard.dismiss(); from react-native core packages.