traintrape-moi/client/app/(tabs)/_layout.tsx

52 lines
1.5 KiB
TypeScript
Raw Normal View History

import { Tabs } from 'expo-router'
import React from 'react'
import { FontAwesome6, MaterialIcons } from '@expo/vector-icons'
2024-12-09 20:00:15 +00:00
import TabBar from '@/components/ui/TabBar'
export default function TabLayout() {
return (
2024-12-09 20:00:15 +00:00
<Tabs tabBar={(props) => <TabBar {...props} />}>
<Tabs.Screen
name="index"
options={{
title: 'Carte',
headerShown: false,
tabBarIcon: ({ color }) => <FontAwesome6 name="map-location-dot" size={24} color={color} />,
}}
/>
<Tabs.Screen
name="challenges"
options={{
title: 'Challenges',
headerTitleStyle: {fontSize: 32},
tabBarIcon: ({ color }) => <FontAwesome6 name="coins" size={24} color={color} />,
}}
/>
<Tabs.Screen
name="train"
options={{
title: 'Ajouter un trajet',
headerTitleStyle: {fontSize: 32},
tabBarIcon: ({ color }) => <FontAwesome6 name="train" size={24} color={color} />,
}}
/>
<Tabs.Screen
name="history"
options={{
title: 'Historique',
headerTitleStyle: {fontSize: 32},
tabBarIcon: ({ color }) => <MaterialIcons name="history" size={24} color={color} />,
}}
/>
<Tabs.Screen
name="settings"
options={{
title: 'Paramètres',
headerTitleStyle: {fontSize: 32},
tabBarIcon: ({ color }) => <MaterialIcons name="settings" size={24} color={color} />,
}}
/>
</Tabs>
2024-12-06 18:00:51 +00:00
)
}