Hey there,
I have a problem.
I just need to select a media for upload
This is what I have
// Image options
const imageData = await Plugins.Camera.getPhoto({
allowEditing: false,
source: CameraSource.Photos,
resultType: CameraResultType.Uri,
});
on console.log(imageData.path) i get
undefined
I need the imageData ‘path’ for Filesystem.readFile and Filesystem.writeFile
Since the path is undefined, the below shows
File not Found
const photoInTempStorage = await Filesystem.readFile({
path: image.path, directory: FilesystemDirectory.Data
})
Did I miss something? or what is the workaround to resolve this
I appreciate any help.