react-native-drawer-layout icon indicating copy to clipboard operation
react-native-drawer-layout copied to clipboard

Pan offset

Open LightningK0ala opened this issue 7 years ago • 2 comments

It seems that in most native apps using a drawer, they have the ability to pull the drawer open even when the pan gesture begins in the middle of the screen. The RN solution and this one don't seem to support this kind of behaviour. Am I mistaken about this? Are there any plans to implement such feature?

LightningK0ala avatar Apr 28 '17 19:04 LightningK0ala

Hey, good catch. Part of the decision why this library doesn't mimic the behavior of DrawerLayoutAndroid anymore is to be capable of extending it in this direction. I am not sure which value it is one would need to modify, either moveX or dx. Either way, it should be possible to make the threshold configurable via props.

Would you like to give it a try?

DanielMSchmidt avatar Apr 28 '17 19:04 DanielMSchmidt

Ok, I'll find some time to look at this. Would be a great addition. Thanks for pointing me in the right direction!

LightningK0ala avatar Apr 29 '17 11:04 LightningK0ala