glepur / react-native-swipe-gestures

4-directional swipe gestures for react-native
MIT License
605 stars 162 forks source link

Gesture recognizer inside gesture recognizer doesn't work #48

Open holgersindbaek opened 4 years ago

holgersindbaek commented 4 years ago

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?

dioseltorre commented 4 years ago

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.

holgersindbaek commented 4 years ago

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