-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Item's onPress does not work when inside ScrollView #5
Comments
Related facebook/react-native#7572 |
Do you have still problems with RN v0.26.2? |
I am getting the same problem with RN v0.26.2 I'm testing this with the example app. Any idea what the problem may be? |
@saemie Do you use the same code from the example? Do you test on the device or emulator? |
Hi, I tested it using your example but I'm having a hard time selecting from the list returned by autocomplete. my autocomplete component is inside a scroll view |
After removing this following line, TouchOpactity onPress function is being called. |
Hello,
*It's work for me :) Hope to help you |
Thx @ltquang your suggestion to add the |
While adding keyboardShouldPersistTaps to true (well, "always" these days) fixes this issue, I need to have keyboardShouldPersistTaps "never" to close the keyboard after clicking outside inputs. Therefore this solution is not suitable for me. |
@panuhorsmalahti, have you tried setting |
@armadillojim 'handled' works great on android, but on iOS the autocomplete scroll still behaves buggy. Although in principle you can select elements and close the autocomplete window by tapped outside the range, the autocomplete view often closes randomly when scrolling inside the autocomplete-view. |
@panuhorsmalahti I managed to get it working with
|
Hi
Hey So this solution also works when we use a picker inside a scrollview. Thank you. |
As title says, selecting item is not working when nested inside a ScrollView.
The text was updated successfully, but these errors were encountered: