📌  相关文章
📜  当用户单击后退按钮时如何在 React 中重新呈现页面 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:08.558000             🧑  作者: Mango

代码示例1
We had a similar desire and solved it by passing a refresh function from the parent to the child.

for example, when you open the child, you would have something like navigate('Child', { refresh: refreshFunction }

You can then access this function in the child ( via something like this.props.navigation.state.params.refresh(); ) before the back action.