Adding indication for each value in Ressource tab

This commit is contained in:
Alexis Leboeuf
2025-12-13 20:23:44 +01:00
parent abdeaa7d45
commit 150c977306
4 changed files with 22 additions and 5 deletions

View File

@@ -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({