react-native-swipe-gestures
react-native-swipe-gestures copied to clipboard
Gesture recognizer inside gesture recognizer doesn't work
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?
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 Nice... beautiful timing :-).