NavigatoriOS can't push same component twice
In my project, I have to push same component to the navigation stack twice. For example, first push A component, then push B component and then push A Component. Things go wrong when I try to push A from B component. Here is the displayed error:
Why can't NavigatoriOS push same component twice? Does anybody know how to fix this out.
Maybe if you post a sample of your code, someone will be able to help you, there's no way to understand the error you're getting from looking at a red screen here. You can also try stackoverflow.
@facebook-github-bot label Needs more information
@hey99xx thanks for your reply, I have found the reason on stackoverflow. It is the problem of cyclic-dependency. here is the link: http://stackoverflow.com/questions/29807664/cyclic-dependency-returns-empty-object-in-react-native
@facebook-github-bot label Icebox
Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/navigatorios-cant-push-same-component-twice
ProductPains helps the community prioritize the most important issues thanks to its voting feature. It is easy to use - just login with GitHub.
Also, if this issue is a bug, please consider sending a PR with a fix. We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.
@facebook-github-bot close
@charpeni tells me to close this issue. If you think it should still be opened let us know why.