Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/455.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 像componentDidEnter一样反应本机事件?_Javascript_Reactjs_React Native - Fatal编程技术网

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