diff --git a/app/(tabs)/_layout.tsx b/app/(tabs)/_layout.tsx index 08789e2..0ce41c8 100644 --- a/app/(tabs)/_layout.tsx +++ b/app/(tabs)/_layout.tsx @@ -49,7 +49,7 @@ export default function TabLayout() { name="GestionOuvrier" component={GestionOuvrier} options={{ - title: 'Bonjour', + title: 'Ouvriers', tabBarIcon: ({ color }) => , }} /> diff --git a/app/(tabs)/gestionnaire_ressource.tsx b/app/(tabs)/gestionnaire_ressource.tsx index ca2faa0..d5c5a24 100644 --- a/app/(tabs)/gestionnaire_ressource.tsx +++ b/app/(tabs)/gestionnaire_ressource.tsx @@ -12,7 +12,6 @@ import { getRessources } from "../../services/ressourcesService"; import SelectChantier from "@/components/selectChantier"; export default function GestionnaireRessource() { - const { nom, prenom } = useLocalSearchParams(); const [search, setSearch] = useState(""); const [ressource, setRessources] = useState([]); const [filterType, setFilterType] = useState("tout"); @@ -43,11 +42,10 @@ export default function GestionnaireRessource() { - {item.id} - {item.name} - {item.type} - {item.quantity} - {item.available_quantity} + Nom : {item.name} + Type : {item.type} + Quantité totale : {item.quantity} + Quantité disponible : {item.available_quantity} ); diff --git a/components/anomaly.tsx b/components/anomaly.tsx index 7b0e017..7eeee95 100644 --- a/components/anomaly.tsx +++ b/components/anomaly.tsx @@ -1,6 +1,6 @@ import { Chantier } from '@/class/class'; import { ThemedView } from '@/components/theme/themed-view'; -import React, { use, useState } from 'react'; +import React, { use, useEffect, useState } from 'react'; import { TouchableOpacity, StyleProp, StyleSheet, View, Image, ViewStyle,Text, TextInput } from 'react-native'; import { ThemedText } from './theme/themed-text'; import { deleteAnomalie, addAnomalie, getChantiers } from '@/services/ressourcesService'; @@ -33,6 +33,12 @@ export default function Anomaly({data,style}: Props) { await syncChantier(); }; + //DEBUG + useEffect(() => { + console.log("imageUri changed", imageUri); + }, [imageUri]); + + // Image picker function (not used currently) const selectImage = async () => { let result = await ImagePicker.launchImageLibraryAsync({ diff --git a/package-lock.json b/package-lock.json index 948b886..8657239 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,7 @@ "expo-image": "~3.0.9", "expo-image-picker": "~17.0.10", "expo-linking": "~8.0.8", + "expo-location": "~19.0.8", "expo-router": "~6.0.11", "expo-splash-screen": "~31.0.10", "expo-status-bar": "~3.0.8", @@ -7158,6 +7159,15 @@ "react-native": "*" } }, + "node_modules/expo-location": { + "version": "19.0.8", + "resolved": "https://registry.npmjs.org/expo-location/-/expo-location-19.0.8.tgz", + "integrity": "sha512-H/FI75VuJ1coodJbbMu82pf+Zjess8X8Xkiv9Bv58ZgPKS/2ztjC1YO1/XMcGz7+s9DrbLuMIw22dFuP4HqneA==", + "license": "MIT", + "peerDependencies": { + "expo": "*" + } + }, "node_modules/expo-modules-autolinking": { "version": "3.0.15", "resolved": "https://registry.npmjs.org/expo-modules-autolinking/-/expo-modules-autolinking-3.0.15.tgz", diff --git a/package.json b/package.json index ddaf8b7..7ea5143 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "expo-image": "~3.0.9", "expo-image-picker": "~17.0.10", "expo-linking": "~8.0.8", + "expo-location": "~19.0.8", "expo-router": "~6.0.11", "expo-splash-screen": "~31.0.10", "expo-status-bar": "~3.0.8",