Open isurugajasinghe opened 6 years ago
navigate = () => { const navigateToScreen2 = NavigationActions.navigate({ routeName:'screen2', params:{name:'Shubhnik'} }) // navigateToscreen2 will look like this: / { "type": "Navigation/NAVIGATE", "routeName": "screen2", "params":{ "name":"Shubhnik" } } /
// The navigateToScreen2 action is dispatched and new navigation state will be calculated in basicNavigationReducer here ---> https://gist.github.com/shubhnik/b55602633aaeb5919f6f3c15552d1802 this.props.navigation.dispatch(navigateToScreen2)
}
this method not working
navigate = () => { const navigateToScreen2 = NavigationActions.navigate({ routeName:'screen2', params:{name:'Shubhnik'} }) // navigateToscreen2 will look like this: / { "type": "Navigation/NAVIGATE", "routeName": "screen2", "params":{ "name":"Shubhnik" } } /
}
this method not working