{"action":"created","issue":{"url":"https://api.github.com/repos/react-navigation/react-navigation/issues/983","repository_url":"https://api.github.com/repos/react-navigation/react-navigation","labels_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/983/labels{/name}","comments_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/983/comments","events_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/983/events","html_url":"https://github.com/react-navigation/react-navigation/issues/983","id":220697445,"number":983,"title":"How to Navigate Between Nested Stacks?","user":{"login":"joncursi","id":4974609,"avatar_url":"https://avatars3.githubusercontent.com/u/4974609?v=4","gravatar_id":"","url":"https://api.github.com/users/joncursi","html_url":"https://github.com/joncursi","followers_url":"https://api.github.com/users/joncursi/followers","following_url":"https://api.github.com/users/joncursi/following{/other_user}","gists_url":"https://api.github.com/users/joncursi/gists{/gist_id}","starred_url":"https://api.github.com/users/joncursi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joncursi/subscriptions","organizations_url":"https://api.github.com/users/joncursi/orgs","repos_url":"https://api.github.com/users/joncursi/repos","events_url":"https://api.github.com/users/joncursi/events{/privacy}","received_events_url":"https://api.github.com/users/joncursi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2017-04-10T16:21:07Z","updated_at":"2018-03-06T20:44:36Z","closed_at":"2017-04-13T16:28:48Z","author_association":"NONE","body":"Let's say I have a main navigator:\r\n\r\n```jsx\r\nconst Root = StackNavigator({\r\n  Auth: { screen: AuthStack },\r\n  Onboarding: { screen: OnboardingStack },\r\n  Tabs: { screen: TabsStack },\r\n});\r\n```\r\n\r\nAnd the following nested stacks:\r\n\r\n```jsx\r\nconst AuthStack = StackNavigator({\r\n  AuthOne: { screen: AuthOne },\r\n  AuthTwo: { screen: AuthTwo },\r\n  ...\r\n});\r\n\r\nconst OnboardingStack = StackNavigator({\r\n  OnboardingOne: { screen: OnboardingOne },\r\n  OnboardingTwo: { screen: OnboardingTwo },\r\n  ...\r\n});\r\n\r\nconst TabsStack = TabNavigator({\r\n  TabOne: { screen: TabOne },\r\n  TabTwo: { screen: TabTwo },\r\n  ...\r\n});\r\n\r\n```\r\n\r\nOnce I navigate from the main navigator into an child stack, say:\r\n\r\n```jsx\r\nnavigation.navigate('Auth'); // navigates me to the AuthStack -> initialRoute = AuthOne\r\n```\r\n\r\nI seem to get \"stuck\" / \"stranded\" there. What I mean by that is I am now limited in the routes I can navigate to. The navigation system now seems to be only aware of `AuthOne` and `AuthTwo`. The following actions yield errors, where previously they would work:\r\n\r\n```jsx\r\nnavigation.navigate('Onboarding'); // Error: There is no route defined for key Onboarding. Must be one of 'AuthOne','AuthTwo'\r\nnavigation.navigate('OnboardingOne'); // Error: There is no route defined for key OnboardingOne. Must be one of 'AuthOne','AuthTwo'\r\nnavigation.navigate('Tabs'); // Error: There is no route defined for key Tabs. Must be one of 'AuthOne','AuthTwo'\r\n```\r\n\r\nSo my question is this: how do you navigate **between** nested / leaf stacks? Or worded a different way: how do you make each stack aware of all the routes?"},"comment":{"url":"https://api.github.com/repos/react-navigation/react-navigation/issues/comments/370921700","html_url":"https://github.com/react-navigation/react-navigation/issues/983#issuecomment-370921700","issue_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/983","id":370921700,"user":{"login":"dihan","id":2371576,"avatar_url":"https://avatars1.githubusercontent.com/u/2371576?v=4","gravatar_id":"","url":"https://api.github.com/users/dihan","html_url":"https://github.com/dihan","followers_url":"https://api.github.com/users/dihan/followers","following_url":"https://api.github.com/users/dihan/following{/other_user}","gists_url":"https://api.github.com/users/dihan/gists{/gist_id}","starred_url":"https://api.github.com/users/dihan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dihan/subscriptions","organizations_url":"https://api.github.com/users/dihan/orgs","repos_url":"https://api.github.com/users/dihan/repos","events_url":"https://api.github.com/users/dihan/events{/privacy}","received_events_url":"https://api.github.com/users/dihan/received_events","type":"User","site_admin":false},"created_at":"2018-03-06T20:44:36Z","updated_at":"2018-03-06T20:44:36Z","author_association":"NONE","body":"@Zaki9 I'm actually back to square 1. I thought i had it but was navigating to a view in the same stack. I cant get to another :(  In Laurensdc's example if I get to 'Overview' I can get 'diaryFlow. You are stuck in that StackNavigator("}}
{"actor":{"display_login":"dihan"}}