react-native-swipe-gestures icon indicating copy to clipboard operation
react-native-swipe-gestures copied to clipboard

Gesture recognizer inside gesture recognizer doesn't work

Open holgersindbaek opened this issue 5 years ago • 2 comments

I have a gesture recognizer inside a view. Inside that view there's a button that opens a modal. Inside that modal I have another gesture recognizer.

Whenever I'm swiping on the gesture recognizer inside the modal view, the handles in the parent gesture recognizer are called.

Is this the expected behaviour or am I doing something wrong? Can I do anything to have the gesture recognizer in the modal receive the touches instead of the parent gesture recognizer?

holgersindbaek avatar Oct 28 '19 21:10 holgersindbaek

This can be fixed when my PR (#47) on this feature request #46 will be merged and released soon. With swipeEnabled prop, you can disable the parent GestureRecogizer and have the child handle the gesture.

dioseltorre avatar Oct 30 '19 07:10 dioseltorre

@dioseltorre Nice... beautiful timing :-).

holgersindbaek avatar Oct 30 '19 07:10 holgersindbaek