Feat: ajout de la page d'ajout des ressources.

This commit is contained in:
Amaël Kesteman
2025-12-13 15:07:21 +01:00
parent d4b056b197
commit ff010fec4e
2 changed files with 217 additions and 2 deletions

View File

@@ -1,8 +1,6 @@
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { } from 'expo-router';
import React from 'react';
import { HapticTab } from '@/components/expoExempleComponents/haptic-tab';
import { IconSymbol } from '@/components/ui/icon-symbol';
import { Colors } from '@/constants/theme';
@@ -12,6 +10,7 @@ import ListMateriel from './gestionnaire_ressource';
import Home from './home';
import MapScreen from './mapScreen';
import AddChantier from './addChantier';
import AddRessource from './addRessource';
import AntDesign from '@expo/vector-icons/AntDesign';
import { UserProvider } from '../ContextUser';
import { ChantierProvider } from '../ContextChantier';
@@ -78,6 +77,19 @@ export default function TabLayout() {
}}
/>
<Tabs.Screen
name="addRessource"
component={AddRessource}
options={{
title: 'Ajouter',
tabBarIcon: ({ color }) => (
<AntDesign name="plus" size={24} color={color} />
),
}}
/>
</Tabs.Navigator>
);
}