I am trying to render the topBar on tab navigation and it's not showing
import { createBottomTabNavigator, createAppContainer } from 'react-navigation';
const TabNavigator = createBottomTabNavigator({ Dashboard: { screen: Dashboard, navigationOptions: { title: 'Dashboard', tabBarIcon: ({ tintColor }) => ( ) }, },
},
{
tabBarPosition: 'top',
tabBarOptions: {
activeTintColor: '#5D10F6',
inactiveTintColor: 'gray',
showIcon: true,
tintColor: '#333',
animationEnabled: false,
showLabel: false,
scrollEnabled: true,
tabBarPosition: 'top',
indicatorStyle: {
backgroundColor: 'red'
}
},
});