diff --git a/apps/mobile/app/assistant/index.tsx b/apps/mobile/app/assistant/index.tsx index 00d572b..5f2787c 100644 --- a/apps/mobile/app/assistant/index.tsx +++ b/apps/mobile/app/assistant/index.tsx @@ -1,4 +1,7 @@ -import * as FileSystem from 'expo-file-system'; +// SDK 57 : les fonctions module-level (dont deleteAsync) sont dépréciées au +// profit des classes File/Directory et lèvent désormais en développement — +// import explicite du sous-chemin legacy, comportement inchangé sinon. +import * as FileSystem from 'expo-file-system/legacy'; import { router } from 'expo-router'; import { useRef, useState } from 'react'; import { Pressable, ScrollView, Text, TextInput, View } from 'react-native'; diff --git a/apps/mobile/app/ot/[id]/cloture.tsx b/apps/mobile/app/ot/[id]/cloture.tsx index d808638..d3f08a7 100644 --- a/apps/mobile/app/ot/[id]/cloture.tsx +++ b/apps/mobile/app/ot/[id]/cloture.tsx @@ -1,4 +1,7 @@ -import * as FileSystem from 'expo-file-system'; +// SDK 57 : les fonctions module-level (dont deleteAsync) sont dépréciées au +// profit des classes File/Directory et lèvent désormais en développement — +// import explicite du sous-chemin legacy, comportement inchangé sinon. +import * as FileSystem from 'expo-file-system/legacy'; import { router, useLocalSearchParams } from 'expo-router'; import { useState } from 'react'; import { Pressable, ScrollView, Text, TextInput, View } from 'react-native';