eslint for mobile + new maps API key + cleaning

This commit is contained in:
Sebastien Riviere
2026-02-15 19:23:29 +01:00
parent c1f1688794
commit 0768609ada
34 changed files with 765 additions and 761 deletions

View File

@@ -2,7 +2,7 @@ import { useState, } from 'react';
import { Alert } from 'react-native';
import { launchImageLibraryAsync, requestMediaLibraryPermissionsAsync } from 'expo-image-picker';
export function usePickImage() {
export const usePickImage = () => {
const [image, setImage] = useState(null);
const pickImage = async () => {
@@ -33,7 +33,7 @@ export function usePickImage() {
console.error('Error picking image;', error);
Alert.alert('Erreur', "Une erreur est survenue lors de la sélection d'une image.");
}
}
};
function sendImage(location) {
if (image) {
@@ -55,4 +55,4 @@ export function usePickImage() {
}
return {image, pickImage, sendImage};
}
};