react-native-drawer-layout
react-native-drawer-layout copied to clipboard
Pan offset
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?
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?
Ok, I'll find some time to look at this. Would be a great addition. Thanks for pointing me in the right direction!