根据下面的示例,它无法使用动画进行导航。
const resetAction = StackActions.reset({
index: 0,
actions: [
NavigationActions.navigate({ routeName: 'MyProfile', params: { url: 'https://.....' } }),
]
});
this.props.navigation.dispatch(resetAction);
我找不到任何提到的文档,如果这不适用?如何进行自定义过渡?
从屏幕 3
const navigateAction = StackActions.reset({
index: 1,
actions: [
NavigationActions.navigate({ routeName: 'Home' }),
NavigationActions.navigate({ routeName: 'Screen2' }),
],
})
this.props.navigation.navigate('Screen2', navigateAction(