react native - navigate using dispatching NavigationActions.navigate for nested stackNavigator -
i have 2 navigation file, first appnavigation include screens , navigation file named authenticationnavigation include other screens. means:
firstnavigation
- firstscreen
- secondscreen
secondnavigation
- thirdscreen
- fourthscreen
in secondscreen used
render() { <authenticationscreen /> } with initial route set thirdscreen. when navigate secondscreen see thirdscreen. in thirdscreen used button navigate fourthscreen. when use
this.props.navigation.navigate('fourthscreen') every thing ok. when use
navigationactions.navigate({ routename: 'secondscreen', action: navigationactions.navigate({ routename: 'fourthscreen' }) }) and dispatch above action nothing happens flash on screen means app trying change screen still remaining on same page. want know how handle problem? can me?
Comments
Post a Comment