Skip to content

Commit

Permalink
fix(mobile): fix bad navigation set
Browse files Browse the repository at this point in the history
Signed-off-by: Sacha Froment <sfroment42@gmail.com>
  • Loading branch information
sfroment committed Mar 5, 2019
1 parent 1eb8adb commit 328ddf7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/react-native/common/components/App.js
Expand Up @@ -77,8 +77,10 @@ class HandleDeepLink extends PureComponent {
<AppNavigator
{...this.props}
ref={() => {
this.navigation = navigation
NavigationService.setTopLevelNavigator(navigation)
if (Platform.OS !== 'web') {
this.navigation = navigation
NavigationService.setTopLevelNavigator(navigation)
}
}}
onNavigationStateChange={(prevState, currentState) => {
const currentRoute = this.getActiveRouteName(currentState)
Expand Down

0 comments on commit 328ddf7

Please sign in to comment.