Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29639

`componentDidMount()` function is not called after navigation

$
0
0

I am using stackNavigator for navigating between screens. I am calling two API's in componentDidMount() function in my second activity. When i load it first time, it gets loaded successfully. Then i press back button to go back to first activity. Then, if i am again going to second activity, the APIs are not called and I get render error. I am not able to find any solution for this. Any suggestions would be appreciated.


Viewing all articles
Browse latest Browse all 29639


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>