Skip to content
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

[bug][ios] Swiping not possible with Touchables from RNGH #554

Closed
hirbod opened this issue May 6, 2022 · 1 comment · Fixed by #563
Closed

[bug][ios] Swiping not possible with Touchables from RNGH #554

hirbod opened this issue May 6, 2022 · 1 comment · Fixed by #563

Comments

@hirbod
Copy link
Contributor

hirbod commented May 6, 2022

Environment

RN 0.68.1 - current version of rnpv
Tested with bare and Expo.
react-native-gesture-handler: 2.4.2 (also tested with 2.2)

iOS only

Description

When you use a Flatlist you will most likely import Touchables from react-native-gesture-handler, because they add native buttons and also help to prevent weird activating touchables when you attempt to scroll. I can't use them with RNPV because it breaks swiping. Guess there is some racing with the gestures going on.

Reproducible Demo

https://snack.expo.dev/@hirbod/pager-view---rngh-touchables-issue

You can swipe the green area, but not the yellow. Only the last yellow box works, since it does use TouchableHighlight by react-native.

@hirbod
Copy link
Contributor Author

hirbod commented May 6, 2022

Also made one here:
software-mansion/react-native-gesture-handler#2043

Feel free to close when you think that this only belongs to RNGH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant