// const resetAction = NavigationActions.reset({
// index: 0,
// actions: [
// NavigationActions.navigate({ routeName: 'Main',params: { token: '123456' } }),
// ]
// })
// NAVIGATION.dispatch(resetAction);
const resetAction = NavigationActions.reset({
index: 0,
actions: [
NavigationActions.init({
routeName: 'Main',
params: {
onLogout: '34',
user: '8374598'
}
})]
})
NAVIGATION.dispatch(resetAction)
- 获取this.props.nativegetion.state.params
网友评论