-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How are images stored? #56
Comments
Images are stored as files on Android and iOS. If a user deletes the app, the files get deleted. You can store them somewhere else like S3 if you want, and you can delete them manually. |
@dmarcs i would like to delete scans that i have processed, but with expo filesystem i cannot do it. |
I also have the same problem, the image files after scanning are not automatically deleted causing the memory to be full. |
@hm1061998 not really, i saw that expo-media-library should do the trick because it can access camera roll folder (i didnt try it yet), but the path to the file is in the scope of the app if i understand it right, so expo-file-system should work. (and i hope there is a way to delete it, otherwise i dont know what will i do :D) |
@hm1061998 @eduardfarkas can't you use https://docs.expo.dev/versions/latest/sdk/filesystem to delete the files? |
It says that the file is not deletable. I have tried to modify the path a little bit just in case it was wrong but i had no success. |
I was able to delete files using https://www.npmjs.com/package/react-native-fs. |
@dmarcs sorry for delay, i tried this library https://github.com/DylanVann/react-native-fast-image and i was also able to delete the image. |
How did you do that ? Can you show code examples ?
|
Hi @silencie, Here is code snippet i use: import { FileSystem } from "react-native-file-access";
const deleteImageFromMemory = (path: string) => {
FileSystem.exists(path).then((exists) => {
exists && FileSystem.unlink(path).then((result) => {});
});
}; |
Hi,
I would like to ask about storing images.
If I take jpg picture, is it cached or stored somewhere permanently?
What are the ways to manage this? Should i delete those pictures manually?
Thanks in advence
The text was updated successfully, but these errors were encountered: