You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.6 KiB
38 lines
1.6 KiB
import {createBottomTabNavigator} from "@react-navigation/bottom-tabs";
|
|
import {NavigationContainer} from "expo-router/build/fork/NavigationContainer";
|
|
import ProfileScreen from "@/src/screen/ProfileScreen";
|
|
import HomeScreen from "@/src/screen/HomeScreen";
|
|
import {MaterialIcons} from "@expo/vector-icons";
|
|
|
|
export default function Navigation() {
|
|
/* const BottomTabNavigator = createBottomTabNavigator();
|
|
|
|
return (
|
|
<BottomTabNavigator.Navigator initialRouteName={"Home"}
|
|
screenOptions={{
|
|
headerShown: false, // Désactive les en-têtes si vous voulez uniquement les onglets
|
|
tabBarActiveTintColor: '#007AFF', // Couleur des icônes actives
|
|
tabBarInactiveTintColor: '#8e8e93', // Couleur des icônes inactives
|
|
}}>
|
|
|
|
<BottomTabNavigator.Screen
|
|
name="Home"
|
|
component={HomeScreen}
|
|
options={{
|
|
title: 'Accueil',
|
|
tabBarIcon: ({ color, size }) => (
|
|
<MaterialIcons name="home" color={color} size={size} />
|
|
),
|
|
}}
|
|
/>
|
|
<BottomTabNavigator.Screen name={"Settings"} component={ProfileScreen}
|
|
options={{
|
|
title: 'Profile',
|
|
}}/>
|
|
|
|
|
|
</BottomTabNavigator.Navigator>
|
|
)
|
|
*/
|
|
|
|
} |