You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.
Perhaps I am overlooking a very obvious piece of documentation but I cannot figure out how to disable the swipe gesture. I have looked within this project and DrawerLayoutAndroid. I only want users to be able to open the drawer via a button. Is this possible?
Thank you for your effort on this project.
The text was updated successfully, but these errors were encountered:
Hey @JakielaAdam Unfortunately not, this project aimed to be a Polyfill for the DrawerLayoutAndroid, which doesn't have such a functionality. We decoupled the react-native-drawer-layout-polyfill to be able to do such changes.
I would love to see a PR from you, the main part you would need to change is the _shouldSetPanResponder function. It controls if the user should be able to drag now. Adding a new prop like disableGuesture here and return false early should have the behavior you are searching for.
Perhaps I am overlooking a very obvious piece of documentation but I cannot figure out how to disable the swipe gesture. I have looked within this project and DrawerLayoutAndroid. I only want users to be able to open the drawer via a button. Is this possible?
Thank you for your effort on this project.
The text was updated successfully, but these errors were encountered: