root-two / react-native-drawer

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

panOpenMask property disables clicks #341

Open pavlea opened 6 years ago

pavlea commented 6 years ago

when i set panOpenMask={0.5} half of the screen becomes unclickable. That's really serious bug, hope you'll fix it quickly, because you did a great job with this library! Cheers!

TacticalSlothmaster commented 6 years ago

Have you tried to set negotiatePan={true} ? Solved it for me

pavlea commented 6 years ago

Thanks, but it doesn't solve the issue. Checked the docs it says

If true, attempts to handle only horizontal swipes, making it play well with a child ScrollView

My layout doesn't have ScrollViews, I've put Drawer to the right, and have an Icon that should open it on click. Icon is on the right side of the Toolbar. Temp solution 've come up to is to set panOpenMask={0.05}, but that's a hacky solution.

nsnayp commented 5 years ago

Thanks, but it doesn't solve the issue. Checked the docs it says

U need to change core. Problem with gesture direction. U need set condition like gesture.vx or vy > 20 in shouldSet gesture function before move drawer view.