How do we call the specific type of action in react-navigation?
How to call action using NavigationAction??? Here if the user doesn't have a token, it goes back to the initial page. I want to reset(initialize) the MainTabNavigator . componentWillReceiveProps(nextProps) { if ( nextProps.token == undefined || _.isNil(nextProps.token) ) { const backAction = NavigationActions.back({ key: null }) nextProps.navigation.dispatch(backAction); Here is MainTabNavigator. I added route to reset everything when 'MyCompleteReset' is triggered. export default TabNavigator({ ........ }); const navigator = MainTabNavigator; const defaultGetStateForAction = navigator.router