Reputation: 2466
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.
Upvotes: 1
Views: 133
Reputation: 2466
componentDidEnter
doesn't work, but componentWillUpdate
, componentDidUpdate
and componentWillReceiveProps
works fine. I used componentWillReceiveProps
in my project.
Upvotes: 1
Reputation: 6080
Combining componentWillUnmount
, componentWillMount
and componentDidMount
should help you to achieve what you are trying to do. (see Component Specs and Lifecycle)
Upvotes: 1