-
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
How to disable swipe to back #2269
Comments
Use |
@aksonov thanks, is there a place for all of the props ? it seems in the example you using it in Tabs, but it would work in scene as well? |
@aksonov gestureEnabled is not working but panHandlers is (using version 4.0.0-beta.21). What's the difference between those props??? |
@mkayswork I believe that is because |
Hi, how could I disable the virtual button to go back android, any ideas? |
@iKronyck What do you mean by "virtual button" on Android ? |
@iKronyck Do you mean the hardware back button? You need to implement the BackHandler |
Thanks!! I'll read about that |
Just curious, why is |
Try swipeEnabled={false} |
its save me, thanks u. |
its not working. |
++++ |
whenever you are moving one scene to another and you want to disable swipe for current scene.Then use Actions.replace('next-scene'); instead of Actions.push('next-scene'); or Actions.next-scene(). I resolve my problem by doing this. |
Version
Tell us which versions you are using:
Expected behaviour
swipe to back not popping the scene
Actual behaviour
Swiping to the right (standard swipe back behaviour) popping the scene with no back button
Steps to reproduce
For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.
Auth
andMain
Login
sceme in Auth andHome
inMain
The text was updated successfully, but these errors were encountered: