Unable to save the image to specified path
Yasir12598 opened this issue · comments
Muhammad Yasir commented
According to the RNCAMERA documentation to save image.
Now, as I am trying to save the captured image to the download directory
const takePicture = async function (camera) {
const options = {
quality: 0.5,
path: '/storage/emulated/0/Download',
};
const data = await camera.takePictureAsync(options);
};
but it gives this and nothing saves to the download directory
Muhammad Yasir commented
Issue resolved you should provide file name at the end of of path like---- path: '/storage/0/download/image.jpg'