How do I save a picture from expo-image-picker to expo-file-system and then render it?
问题 I am trying to store selected images within the application, as opposed to in the image roll. Here is what I have tried: await FileSystem.downloadAsync( imageUri, // the image uri from expo-image-picker FileSystem.documentDirectory + `${uuid}-image.jpg` ) .then(({ uri }) => { console.log("Finished downloading to ", uri); }) .catch((error) => { console.error(error); }); I receive the error: Unable to download file: Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" I also tried: await