{"action":"opened","issue":{"url":"https://api.github.com/repos/react-navigation/react-navigation/issues/4969","repository_url":"https://api.github.com/repos/react-navigation/react-navigation","labels_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/4969/labels{/name}","comments_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/4969/comments","events_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/4969/events","html_url":"https://github.com/react-navigation/react-navigation/issues/4969","id":358637605,"node_id":"MDU6SXNzdWUzNTg2Mzc2MDU=","number":4969,"title":"Pass uriPrefix prop to createBottomTabNavigator","user":{"login":"yooouuri","id":12934957,"node_id":"MDQ6VXNlcjEyOTM0OTU3","avatar_url":"https://avatars3.githubusercontent.com/u/12934957?v=4","gravatar_id":"","url":"https://api.github.com/users/yooouuri","html_url":"https://github.com/yooouuri","followers_url":"https://api.github.com/users/yooouuri/followers","following_url":"https://api.github.com/users/yooouuri/following{/other_user}","gists_url":"https://api.github.com/users/yooouuri/gists{/gist_id}","starred_url":"https://api.github.com/users/yooouuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yooouuri/subscriptions","organizations_url":"https://api.github.com/users/yooouuri/orgs","repos_url":"https://api.github.com/users/yooouuri/repos","events_url":"https://api.github.com/users/yooouuri/events{/privacy}","received_events_url":"https://api.github.com/users/yooouuri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-10T14:02:16Z","updated_at":"2018-09-10T14:02:16Z","closed_at":null,"author_association":"NONE","body":"## The issue tracker is reserved for bug reports only.\r\n\r\nIf you have a question, feature request, or an idea for improving the library or its related tools, please try one of the following resources:\r\n\r\n- [Read the documentation](https://reactnavigation.org/)\r\n- [Post an issue to the website repository if you'd like to see a documentation change](http://github.com/react-navigation/website)\r\n- [Post a feature request to Canny](https://react-navigation.canny.io/feature-requests)\r\n- [Write a RFC if you have ideas for how to implement a feature request](https://github.com/react-navigation/rfcs)\r\n- [Get help on Discord chat (#react-navigation on Reactiflux)](https://discord.gg/4xEK3nD) or [on StackOverflow](https://stackoverflow.com/questions/tagged/react-navigation)\r\n- Search for your issue - it may have already been answered or even fixed in the development branch. However, if you find that an old, closed issue still persists in the latest version, you should open a new issue.\r\n\r\nBugs with react-navigation must be reproducible *without any external libraries that operate on it*. This means that if you are attempting to use Redux or MobX with it and you think you have found a bug, you must be able to reproduce it without Redux or MobX in this report. Redux related issues belong in [react-navigation-redux-helpers](https://github.com/react-navigation/react-navigation-redux-helpers), and we do not have any first-class integration with MobX at the moment.\r\n\r\n---\r\n\r\n### Current Behavior\r\nThe component should be openend from deeplinking.\r\n\r\n### Expected Behavior\r\nThe app opens and nothing else happens.\r\n\r\n### How to reproduce\r\n\r\nI have a `App` class, that returns a `createSwitchNavigator`\r\n\r\n```js\r\nexport default class App extends React.Component {\r\n  ...\r\n\r\n  render() {\r\n    return <AppNavigator />;\r\n  }\r\n}\r\n```\r\n\r\n```js\r\nconst AppNavigator = createSwitchNavigator(\r\n  {\r\n    AuthLoading: LoadingScreen,\r\n    App: AppStack,\r\n    Auth: AuthStack\r\n  },\r\n  {\r\n    initialRouteName: 'AuthLoading',\r\n  }\r\n);\r\n```\r\n\r\nMy AppStack is a `createBottomTabNavigator` and contains (for example) one stack navigator.\r\n\r\n```js\r\nexport default createBottomTabNavigator(\r\n  {\r\n    FirstStack: SomeStack,\r\n  }\r\n);\r\n```\r\n\r\n```js\r\nexport default createStackNavigator(\r\n  {\r\n    VenuePromo: {\r\n      screen: SomeScreen,\r\n      path: 'some_screen',\r\n    },\r\n  }\r\n);\r\n```\r\n\r\nWhen I change `App: AppStack` to `App: { screen: () => (<AppStack uriPrefix={prefix}/>) }` in my createSwitchNavigator deeplinking is working, but calling `this.props.navigation.navigate('Auth');` won't work anymore.\r\n\r\nSo i can't \"logout\" to say...\r\n\r\nWhen I add the `uriPrefix` prop to my AppNavigator (in the App's render). Calling `this.props.navigation.navigate('Auth');` works but deeplinking don't.\r\n\r\nHow can I pass the uriPrefix prop to my `createBottomTabNavigator` without breaking the `this.props.navigation.navigate('Auth');`\r\n\r\n### Your Environment\r\n\r\n| software         | version\r\n| ---------------- | -------\r\n| react-navigation | 2.6.2\r\n| react-native     | 0.56.0\r\n| node             | v10.9.0\r\n| npm or yarn      | yarn\r\n"}}
{"actor":{"display_login":"yooouuri"}}