Tell us which versions you are using:
Actions.{route}() should work and navigate me to scene.
Throws error ExceptionsManager.js:63 There is no route defined for key {route}.
Must be one of: 'root','newBroadcast'
For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.
This is my
<Router>
<Scene modal={true} hideNavBar>
<Stack key='root' renderTitle={navBarLogo}>
<Scene key='loading' component={LoadingPage} hideNavBar={true} inital />
<Scene key='splash' component={NewRegisterPage} type="replace" hideNavBar={true} />
<Scene key='feed' component={FeedPage} type="reset" />
</Stack>
<Scene key='newBroadcast' component={NewBroadcastPage} direction='vertical' />
</Scene>
</Router>
Actions.feed() throw me the no route defined error. I'm at my wit's end and would appreciate any form of help.
After some diagnosing, I realise the type='reset' is the one causing the issue. Does anyone have any idea on how to fix this?
Have you tried to use replace instead?
Hey @aksonov, not sure why I haven't tried this previously but using type={ActionConst.REPLACE} fixed the issue. Will submit a PR for the docs. Thank you!
hello
how are you?
did you solve error???
anyone solve this error.. replace is not working.
Please open a new issue with the details of your error and sample code to help someone to jump on this.
@daviscabral i open this issue here #3104
Most helpful comment
Have you tried to use
replaceinstead?