How to navigate between different nested stacks in react navigation

后端 未结 14 790
情话喂你
情话喂你 2020-12-02 16:52

The Goal

Using react navigation, navigate from a screen in a navigator to a screen in a different navigator.

More Detail

If I have the following

14条回答
  •  情深已故
    2020-12-02 17:29

     const subAction = NavigationActions.navigate({ routeName: 'SignInScreen' });
          AsyncStorage.clear().then(() =>
            this.props.navigation.navigate('LoggedOut', {}, subAction));
    

    LoggedOut is the stack name where signIn screen is placed.

提交回复
热议问题