Listener for any screen change
complete
Brent Vatne
complete
Sébastien Lorber pointed out the solution
Sébastien Lorber
If you use a stateful navigator, you can already do this:
<MyNavigator
onNavigationStateChange={() => collapseHeader()}
/>
If you use a controlled navigator it should be even more straightforward
Noitidart
This would be useful in things like redux-saga.