0

My question is the next:

Situation: I have an ImagesScreen where I can upload some additional photos, delete them, etc. When someone add a new photo (from the gallery, react-native-image-crop), I want to make a copy from the image, save it to the local storage (so even if someone delete the image from the gallery I got my own copy in my local storage).

Why: I do not want to immediately send the photos toward the API, I just want to backup them every day, so when I make a copy from the selected photo(s) I want to retrieve the uri of the local stored image. (not the uri of the image in the gallery)

How would you guys handle this case?

Random Cotija
  • 613
  • 1
  • 10
  • 26
Istvan Orban
  • 1,607
  • 3
  • 18
  • 34

1 Answers1

1

its complicated, try https://github.com/itinance/react-native-fs, is suitable for you.

there you can handle cached dirs, tmp dirs, delete files/save files

dvvtms
  • 627
  • 3
  • 10