-
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
Reset stack with transition #2236
Comments
@aksonov Tips? |
Try to modify RNRF's |
Where can I get |
@aksonov suggestions? |
I meant fork & edit source code of RNRF (and rebuild dist folder) |
But since React Navigation has this option, shouldn't RNRF has this as well? |
I can add it but I need clear demo first to understand issue. Please fork & modify Example project. |
I'm getting an error when trying to fork & run: Still, I think it's pretty simple what I'm suggesting.
Here, we are transitioning through screens. However, what I'm suggesting is when user reaches the last screen 1, RNRF resets the stack, not allowing the user to go back by NavBar or swipe. |
'replace' does this trick, right? Do you want also animation? It seems out of scope for this component (and a bit unusual) - why just don't use |
@aksonov any news on this? I want to reset stack to new screen with transition is this possible with |
@shukerullah Since RNRF is based on React Navigation, this is not possible yet. react-navigation/react-navigation/issues/2390 What I was suggested to @aksonov is something similar as Facebook does on Navigator with
From what I've learned, it appears that react-navigation will approach this on V 1.0. I don't know if is possible to apply this on RNRF, but I think this is a must both on RNRF or react-navigation. |
@aksonov Since we now can reset a child stack, would it be possible? |
I'm trying to reset the stack when transitioning a scene. Is this possible?
I know that
{ type: "reset" }
and{ type: "replace" }
works, but without transition.Thanks
Edit
I've seen that react-navigation has some method for this:
How can I achieve this on RNRF?
The text was updated successfully, but these errors were encountered: