I am using stackNavigator for navigating between screens. I am calling two API\'s in componentDidMount() function in my second activity. When i loa
stackNavigator
componentDidMount()
React-navigation keeps the component mounted even if you navigate between screens. You can use the component to react to those events :
console.log('hello world')} />
More info about this component here.