Touchable Buttons Not Firing onPress Inside PanGestureHandler #3172
fredrickreuben
started this conversation in
General
Replies: 2 comments
-
did you find what was? |
Beta Was this translation helpful? Give feedback.
0 replies
-
This was pretty annoying for me. I'm not sure if you have the same setup as me, but I used the two properties below to help alleviate my issues. Using these make the pan not get registered until a certain amount of pixels have been panned, so if you tap, it won't get triggered. You can adjust the values per your needs. const panGesture = Gesture.Pan()
.activeOffsetX([-10, 10])
.activeOffsetY([-10, 10]) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How are you guys getting Touchables to work inside a GestureDetector, especially with PanGesture? In my case, the buttons inside aren't triggering the onPress function. It's as if the tap isn't being detected.
Beta Was this translation helpful? Give feedback.
All reactions