Open arkhamsushant opened 6 years ago
The picker is only a visual element and does not handle taps - it only sends events (on a single tap) and you're expected to re-render the element with updated props.
@arkhamsushant Does the issue happen inside a ScrollView? If that's the case, you may just need to add keyboardShouldPersistTaps='handled'
to the ScrollView, though I can't recall if that only caused the "double tap" when the keyboard was open.
Hi @kachnitel , keyboardShouldPersistTaps='handled' does not work. It still requires double tap, which make this very annoying to use. Please suggest, if you have some other workaround.
I found a solution to the problem. actually TextInput click was bringing up the keyboard on the background of the modal. So first click was always used for dismissing keyboard. By using Keyboard.dismiss()
on the onFocus()
method of TextInput, single tap started working.
Hi hiddentao, I am using this component in my android app on production, it works fine, great work :). The issue I am facing is that the picker always requires double tap. Whether you need to open the picker, or you need to select a value, from the dropdown, we always need to tap twice, which makes it non-intuitive. It should work on single tap. Please inform if there is a solution to this or a workaround.