标签: react-native react-navigation react-native-navigation react-navigation-stack
如果试图重新访问上一个屏幕,我正在尝试寻找一种方法。
this.props.navigation.dispatch(NavigationActions.back())
答案 0 :(得分:1)
您可以使用didFocus或willFocus侦听器,请检查:
https://reactnavigation.org/docs/en/navigation-prop.html#addlistener-subscribe-to-updates-to-navigation-lifecycle