root-two / react-native-drawer

React Native Drawer
MIT License
2.54k stars 390 forks source link

Gesture to close/open menu + map with zoom gesture #308

Open alex-alicunde opened 7 years ago

alex-alicunde commented 7 years ago

I marvel at this module. My app has increased its speed incredibly. Thank you very much.

I have a problem, I have a full screen map. When I open the menu with the gesture, the gesture is replicated on the map.

Is there any solution?

A sincere hug for such a wonderful code.

dopey2 commented 7 years ago

Maybe disable the gesture for the drawer and open/close it using a button xD ?

alex-alicunde commented 7 years ago

Is a option, but i think my problem is the event: onOpenStart

OnOpenStart does not fire with the drag menu. It fires when the menu is completely open.

Is there any other event to solve it? Thanks :D

dopey2 commented 7 years ago

You can make your own gesture system using Gesture Responder System ;) http://facebook.github.io/react-native/releases/0.46/docs/gesture-responder-system.html#gesture-responder-system

alex-alicunde commented 7 years ago

Oh my God!. I discovered that the official Google Maps app has a right margin of 40px where the map does not work the drag.

O !!!!! ... thanks to all!