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

Android: Touchables trigger when swiping in the wrong horizontal direction on first/last slide #776

Open
svenlombaert opened this issue Oct 12, 2023 · 0 comments

Comments

@svenlombaert
Copy link

Environment

"react-native": "0.72.5",
"react-native-tab-view": "*",
"react-native-pager-view": "6.0.1",
"react-native-gesture-handler": "~2.8.0"

Description

I recently upgraded from a really old version of react-native-tab-view and can't seem to fix this one.

When swiping to the right on the first tab, or to the left on the last tab (so in the "wrong" direction) it triggers a tap inside my flatlist/scrollview touchables. Everything is fine when you swipe in the correct direction.

I would expect that a swipe over a touchable would not trigger a tap, even if it's in the wrong direction.

Reproducible Demo

I have made a reproduceable snack here:
https://snack.expo.dev/@svrnlombaert/android-bug-react-native-tab-view?platform=android

Video:

Screen.Recording.2023-10-12.at.10.21.28.mov
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

No branches or pull requests

1 participant