How to add a custom component to createMaterialTopTabNavigator tab bar
I am using createMaterialTopTabNavigator from react-navigation and trying to customize the tab bar by adding some components on top of it. As you can see in its guide here: https://reactnavigation.org/docs/en/material-top-tab-navigator.html#docsNav there is an option called tabBarComponent that can be passed to create your own tab bar. However, it completely overrides the tab bar which is not what I want. I'd like to add a custom component at the top of the tab bar and then have the default tabs with their labels underneath. Can anyone show me an example of how to add a component to the tab