I am stuck with an error. When I am trying to reset the screen navigation stack, I am getting this error The action 'Navigation/RESET' was not handled by any navigation
My code to reset the navigation is :
let resetAction = StackActions.reset({
key: null,
index: 0,
actions: [
NavigationActions.navigate({ routeName: 'ScreenName' })
]
})
this.props.navigation.dispatch(resetAction)
Please if u can suggest me any solution, that would be very much appreciated.