-
So I am @react-native-community/slider Slider component inside Pan Gesture detector. But the pan gesture is conflicting with Slider. I tried using simultaneoushandlers and hitSlop but none of them worked. |
Beta Was this translation helpful? Give feedback.
Answered by
bunkscene
May 12, 2025
Replies: 1 comment 1 reply
-
Try this: const panGesture = Gesture.Pan()
.activeOffsetX([-10, 10])
.activeOffsetY([-10, 10]) This will prevent the pan gesture from activating until a certain number of pixels have been panned. You may need to combine that with something like |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
m-bert
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this:
This will prevent the pan gesture from activating until a certain number of pixels have been panned. You may need to combine that with something like
requireExternalGestureToFail
orblocksExternalGesture
.