How to save the images into a folder in the app from image url in an Api. and save that path in sqlite.
I tried Expo.FileSystem.makeDirectoryAsync(fileUri, options) for creating a directory then i download the images with Expo.FileSystem.downloadAsync(uri, fileUri, options) and then i move this to the folder when i created Expo.FileSystem.moveAsync(options) . But only thing working will be i can only download the images from the api but the image is download to the Expo.FileSystem.documentDirectory and getting the uri as
and in console i got
[Unhandled promise rejection: Error: Directory ‘file:///data/user/0/host.exp.exponent/files/ExperienceData/%2540tester%252Ftestv1//testfolder/’ could not be created.
How to process the images and create directory and move the file to the created directory.