wix-incubator / react-native-interactable

Experimental implementation of high performance interactable views in React Native
MIT License
5.19k stars 514 forks source link

Is it possible to only capture gestures in a single direction? #201

Open isaachinman opened 6 years ago

isaachinman commented 6 years ago

Hi, and thanks for a fantastic project. I was able to get this up and running in my project almost immediately, and had a swipeout menu basically for free with horizontalOnly.

However, I have a standard drawer-type navigation menu, launched either by clicking a hamburger icon, or swiping in from the left side of the screen. Because I now have a list of interactables filling my screen, swiping in from the left is captured by the interactables and not my drawer (which is coming from Wix's react-native-navigation, by the way).

Is it currently possible to limit interactables to only respond to gestures in a single direction, depending on snap state? Obviously once these swipeout menus are open, they would then need to be able to capture swipes in from the left to close.

Inbal-Tish commented 5 years ago

related to issue #74