Is there any event like componentDidEnter
? Only event componentDidMount
works, but I need to call function also when page changed using this.props.navigator.pop();
Thank you.
Combining componentWillUnmount
, componentWillMount
and componentDidMount
should help you to achieve what you are trying to do. (see Component Specs and Lifecycle )
componentDidEnter
doesn't work, but componentWillUpdate
, componentDidUpdate
and componentWillReceiveProps
works fine. I used componentWillReceiveProps
in my project.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.