Feat: ajout de la page d'ajout des ressources.
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user