Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Question: Possible to prevent swiping gesture #69

Closed
ma-pe opened this issue Mar 14, 2018 · 3 comments
Closed

Question: Possible to prevent swiping gesture #69

ma-pe opened this issue Mar 14, 2018 · 3 comments
Assignees

Comments

@ma-pe
Copy link

ma-pe commented Mar 14, 2018

I am currently happily using Navigation to navigate through my App. 馃憤

I have a process where the user may not enter earlier steps. I am hiding the back-button, but the user can still use the "swipe-right"-gesture to return to earlier screens.

Is it possible to prevent the user from using the swiping gesture (on single Card's or the whole Navigation)?

I haven't found anything in the docs.

@LeoLeBras
Copy link
Member

You can use new gesturesEnabled option - 80b7a0f 馃槉

@ma-pe
Copy link
Author

ma-pe commented Mar 21, 2018

Love it!

@ma-pe
Copy link
Author

ma-pe commented Apr 9, 2018

As mentioned here (#70) this doesn't work yet.

The way how I see it, is that it isn't reflected here: https://github.com/LeoLeBras/react-router-navigation/blob/master/packages/react-router-navigation/src/DefaultNavigationRenderer.js#L104

Hope I could be of a little help for you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants