I am trying to reopen screen using “react-navigation”, but constructor and componentDidMount methods didn’t fired.
how to fire these methods after reopen screens?
thanks,
I am trying to reopen screen using “react-navigation”, but constructor and componentDidMount methods didn’t fired.
how to fire these methods after reopen screens?
thanks,
It seems that you use react navigation 2.0, there’re some problems, heh
You should use navigation.push instead of navigation.navigate
Hey @infographapps,
I’m not entirely sure what you are asking, but my preliminary thought is that you are hoping to execute some code after going back to a screen that hasn’t been unmounted.
You can achieve that by using a focus listener
that will execute the code when the screen is focused again: Redirecting to https://reactnavigation.org/docs/navigation-prop
Cheers,
Adam
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.