Adding indication for each value in Ressource tab
This commit is contained in:
@@ -44,10 +44,10 @@ export default function GestionnaireRessource() {
|
||||
<Image source={{ uri: item.Image }} style={styles.image} />
|
||||
<ThemedView lvl={1} style={styles.info}>
|
||||
<ThemedText>{item.id}</ThemedText>
|
||||
<ThemedText>{item.name}</ThemedText>
|
||||
<ThemedText>{item.type}</ThemedText>
|
||||
<ThemedText>{item.quantity}</ThemedText>
|
||||
<ThemedText>{item.available_quantity}</ThemedText>
|
||||
<ThemedText>Nom : {item.name}</ThemedText>
|
||||
<ThemedText>Type : {item.type}</ThemedText>
|
||||
<ThemedText>Quantité totale : {item.quantity}</ThemedText>
|
||||
<ThemedText>Quantité disponible : {item.available_quantity}</ThemedText>
|
||||
</ThemedView>
|
||||
</ThemedView>
|
||||
);
|
||||
|
||||
@@ -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({
|
||||
|
||||
10
package-lock.json
generated
10
package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user