-
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
Issue with Actions.reset() and <Modal/> #2742
Comments
It is not supported at this moment, PR is welcome. Probably you could add custom transitions with usual stack container instead: #2628 |
Hello @aksonov ! I actually have the same problem, you said reset stack and Modals are not supported yet. |
@riamon-v If you have multiple sub-stacks instead of just
Try:
This could be a hacky way and I'm not sure if it's the intended solution but at least it works for now. |
Version
Tell us which versions you are using:
Expected behaviour
My Router is currently configured like this
When I call for Modal window (that is implemented according to docs provided) is pops up from the bottom of the screen, then I close it and tap on Home or Settings icon in my TabBar which resets the navigation stack to the scene needed. Modal is strictly required in my project.
Actual behaviour
When I tap on on Home or Settings icon in my TabBar (and call for Actions.reset('myKeyName')) it shows me an error with following statement
Other actions like POP, Replace are working as expected but they don't fit my needs because they won't clear the routing stack.
If I delete the
<Modal...> </Modal>
part, RESET works totally as expected but I lose this nice transition from bottom of the screen. I nested it as explained in the docs, can't figure out what's wrong...Steps to reproduce
Null
The text was updated successfully, but these errors were encountered: