-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QUESTION: How to disable swipe-back but not disable drawer-swipe #2226
Comments
Try adding
|
@abeltje1 I don't understand your issue. Check Example project, tab2_2 - it has panHandlers disabled but you still can open drawer by swipe. |
@aksonov you're right, on my simulator I couldnt swipe for some reason but on phone it actually works, sorry. Is the reverse also possible? (Disable drawer swipe but not back swipe)? Thanks for your response! |
It is not supported yet: react-navigation/react-navigation#390 |
@aksonov , Below is my Router,
Current behavior: Drawer is visible on 'HomeComponent' and i have disabled it on other scenes using "back={true}". Expected:
Any solution or any alternate ways to overcome this issue ? Thanks in advance. |
@preetampatil3d did you found any solution for your case? |
Version
Tell us which versions you are using:
Now, when implementing a drawer, swiping left opens the drawer AND pops the scene. The only workaround is to disable gestures altogether by using panHandlers or disableGestures but that's not the behaviour i'd like. My question: is it possible at this moment to only disable swipe-back gestures but not drawer-init-gestures per scene?
The text was updated successfully, but these errors were encountered: