Вы можете добавить дополнительную опцию activeBackgroundColor
в tabBarOptions
, как в этом примере
const mainTabBarNav = createBottomTabNavigator({
projectHome: ProjectHomeScreen,
userInfo: UserInfoScreen,
taskList: TaskListScreen,
profile: ProfileScreen,
}, {
tabBarPosition: 'bottom',
tabBarOptions: {
activeTintColor: Colors.navigationTintColor,
activeBackgroundColor: 'red',
inactiveTintColor: Colors.tabbarNormal,
swipeEnabled: false,
showLabel: true,
showIcon: true,
style: {
backgroundColor: 'white',
paddingVertical: 10,
height: 60
},
indicatorStyle: {
backgroundColor: 'white',
}
},
tabBarComponent: BottomTabBar,
swipeEnabled: false,
initialRouteName: screenNames.taskList,
}