diff --git a/app/(tabs)/_layout.tsx b/app/(tabs)/_layout.tsx
index 1542e4e..fc29bde 100644
--- a/app/(tabs)/_layout.tsx
+++ b/app/(tabs)/_layout.tsx
@@ -76,7 +76,7 @@ export default function TabLayout() {
options={{
title: 'Ajouter',
tabBarIcon: ({ color }) => (
-
+
),
}}
/>
diff --git a/app/(tabs)/addChantier.tsx b/app/(tabs)/addChantier.tsx
index 36513ee..f0dc39c 100644
--- a/app/(tabs)/addChantier.tsx
+++ b/app/(tabs)/addChantier.tsx
@@ -3,7 +3,7 @@ import SelectChantier from '@/components/selectChantier';
import SetStatus from '@/components/setStatus';
import { ThemedView } from '@/components/theme/themed-view';
import React, { useEffect, useState } from 'react';
-import { StyleSheet, ScrollView, Button, TextInput, Text } from 'react-native';
+import { StyleSheet, ScrollView, Button, TextInput, Text, View } from 'react-native';
import { useChantier } from '../ContextChantier';
import { useRessources } from '../ContextRessource';
import { useUser } from '../ContextUser';
@@ -12,6 +12,8 @@ import { Chantier, Ressources } from '@/class/class';
import { ThemedText } from '@/components/theme/themed-text';
import { ThemedButton } from '@/components/theme/themed-button';
import { ThemedTextInput } from '@/components/theme/themed-textinput';
+import Constants from 'expo-constants'; //pour connaître la taille de la barre menu de l'OS en haut
+
export default function AddChantier() {
const { chantier, setChantier } = useChantier();
@@ -87,41 +89,48 @@ export default function AddChantier() {
}
}
return (
-
-
- Ajouter un nouveau chantier
-
-
-
-
- Équipe
-
+
- />
- Ressources
-
+
+
- />
- handleAddChantier()}
- >
-
-
-
-
-
+
+
+ Ajouter un nouveau chantier
+
+
+
+
+ Équipe
+ Ressources
+ handleAddChantier()}
+ >
+
+
+
+
+
+
);
}
const styles = StyleSheet.create({
+ back:{
+ height:"100%",
+ width:"100%",
+ },
container: {
flex: 1,
- marginTop: 60,
+ marginTop: Constants.statusBarHeight, //pour la barre menu du haut
},
header: {
+ marginTop:60,
marginBottom: 20,
alignItems: "center",
paddingHorizontal: 20,