• 1000 1001 *
function ButtomTabs() {
return (
<Tab.Navigator
initialRouteName="Home"
activeColor={COLORS.ACTIVETAB}
inactiveColor={COLORS.INACTIVETAB}
barStyle={{backgroundColor: COLORS.DEFAULT}}
backBehavior="initialRoute"
lazy
shifting
tabBarOptions={{
activeTintColor: COLORS.ACTIVETAB,
inactiveTintColor: COLORS.INACTIVETAB,
labelPosition: 'beside-icon',
}}>
<Tab.Screen
name="Home"
component={HomeStackScreen}
options={{
tabBarLabel: 'Accueil',
tabBarColor: COLORS.DEFAULT,
tabBarIcon: ({color}) => <MaterialCommunityIcons name="home" color={color} size={26} />,
}}
/>
<Tab.Screen
name="Contacts"
component={ContactStackScreen}
options={{
tabBarLabel: 'Contacts',
tabBarColor: COLORS.DEFAULT,
tabBarIcon: ({color}) => (
<MaterialCommunityIcons name="contacts" color={color} size={26} />
),
}}
/>