Without using Redux, how do I detect a tab change with a react navigation tab navigator?
I know I need to somehow use onNavigationStateChange but I can\'t figure out
Actually, you can add an special listener in your component
componentDidMount () { this.props.navigation.addListener('willFocus', (route) => { //tab changed }); }