React 本机导航器,this.props.navigator.pop 不调用 constructor() 和 ComponentDidMount()

React native navigator, this.props.navigator.pop not calling constructor() & ComponentDidMount()

我的问题详情如Github library issues.

中所述

我正在研究 Wix Navigation,也称为 React Native Navigation。在这个库中,当我将导航弹出到最近的屏幕时,它既不调用 constructor() 也不调用 ComponentDidMount()。

有没有人用过这个概念遇到同样的问题??

请帮帮我..

如果从堆栈中弹出一个屏幕并显示上一个屏幕,这是预期的行为。当您添加一个屏幕以通过推送堆叠时,您只需在当前屏幕的顶部添加一个屏幕,它不会被卸载。所以当你返回时它不会重新渲染。