I\'m using MaterialTopTabNavigator with React Navigation 4.x, and want to call a function whenever the tab changes. Right now the only option I see
MaterialTopTabNavigator
React Navigation 4.x