react-native icon indicating copy to clipboard operation
react-native copied to clipboard

NavigatoriOS can't push same component twice

Open AllenHK opened this issue 10 years ago • 7 comments

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:

screen shot 2016-08-18 at 5 43 02 pm

Why can't NavigatoriOS push same component twice? Does anybody know how to fix this out.

AllenHK avatar Aug 18 '16 09:08 AllenHK

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.

hey99xx avatar Aug 18 '16 11:08 hey99xx

@facebook-github-bot label Needs more information

hey99xx avatar Aug 18 '16 11:08 hey99xx

@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

AllenHK avatar Aug 19 '16 01:08 AllenHK

@facebook-github-bot label Icebox

charpeni avatar Nov 14 '16 02:11 charpeni

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.

charpeni avatar Nov 14 '16 02:11 charpeni

@facebook-github-bot close

charpeni avatar Nov 14 '16 02:11 charpeni

@charpeni tells me to close this issue. If you think it should still be opened let us know why.

facebook-github-bot avatar Nov 14 '16 02:11 facebook-github-bot