Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果重新访问它,我正在尝试找出一种在我之前的屏幕中调用函数的方法。
this.props.navigation.dispatch(NavigationActions.back())
您可以使用 didFocus 或 willFocus 监听器,请检查:
https://reactnavigation.org/docs/en/navigation-prop.html#addlistener-subscribe-to-updates-to-navigation-lifecycle