Javascript 像componentDidEnter一样反应本机事件?
是否存在类似于Javascript 像componentDidEnter一样反应本机事件?,javascript,reactjs,react-native,Javascript,Reactjs,React Native,是否存在类似于componentDidEnter的事件? 只有事件componentDidMount起作用,但当使用this.props.navigator.pop()更改页面时,我还需要调用函数 谢谢。组合组件将卸载,组件将装载和组件安装将有助于实现您的目标。(请参阅)componentdidtenter不工作,但componentWillUpdate,componentdiddupdate和componentWillReceiveProps工作正常。我在我的项目中使用了组件willrecei
componentDidEnter
的事件?
只有事件componentDidMount
起作用,但当使用this.props.navigator.pop()更改页面时,我还需要调用函数代码>
谢谢。组合组件将卸载
,组件将装载
和组件安装
将有助于实现您的目标。(请参阅)componentdidtenter
不工作,但componentWillUpdate
,componentdiddupdate
和componentWillReceiveProps
工作正常。我在我的项目中使用了组件willreceiveprops