createBottomTabNavigator with dynamic tabStyle for different tabs
问题 According to the Document, I can change activeTintColor and activeBackgroundColor in tabBarOptions . Is there a way to style the tab button with something like activeTabBarStyle ? I want to add a borderTop to the active tab, like this: So I created a function for the defaultNavigationOptions to dynamically assign the tabStyle for different tabs: // ... const BottomNavigator = createBottomTabNavigator({ Users: { screen: UsersStackNavigator, }, Dashboard: { screen: DashboardStackNavigator, },