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
How to disable Swiping drawer to dismiss #62
Comments
Hey @mamin76dev, Please do the following:
Thanks |
I upgrade the react-nativer-drawer-extension to latest version and the problem has not been resolved yet. WhatsApp.Video.2021-09-06.at.12.22.21.PM.1.mp4 |
@mamin75dev, on the video you still have some older version, because the drawer doesn't jump like that on the latest one. Are you sure you upgraded it? |
Yes, I upgrade it. |
@mamin75dev, yeah, there's a bug with ScrollView and other views that are based on it. The problem is that ScrollView claims the touch responsiveness from the parent responder in the drawer, so touch events in the drawer stop being called and thus properly handled. That's a reason why the drawer gets stuck on dragging. |
@CursedWizard Do you know if with current implementation we can disable swipe to close? @mamin75dev are you using |
Yes, I am using SideMenuView. And also test a simple view. |
Closed by #63. Version 4.2.0 |
Just wanted to clarify about my commit. There are two props added: If you want to turn off any gesture interaction whatsoever, you also can set @mamin75dev, could you please upgrade to the latest version and verify, that it worked for you? Also, @lukebrandonfarrell, I wouldn't be so fast about closing this one, since my commit doesn't fix the issue but only adds an option to avoid it. |
Thanks for your commit! It's working! |
@mamin75dev, good. By the way, check out my bottom sheet library I also built for RNN. Could be useful. |
Hi,
I am using react-native-navigation and react-native-navigatioin-drawer-extension.
I want to disable swiping drawer and I try to add
swipeToDismiss: false
topassProps
andoptions
objects. But I didn't get the result that I want. I want that because the drawer make lag and stop in screen when I swiping to dismiss. Please help me to solve this problem.This is my code to show drawer:
The text was updated successfully, but these errors were encountered: