I am getting Permission denied when trying to save the image to the gallery via "CameraRoll.saveToCameraRoll()" from react native. my code is below==>
takePicture = async function() {
if (this.camera) {
const data = await this.camera.takePictureAsync();
let saveResult = CameraRoll.saveToCameraRoll(data.uri);
console.warn('takePicture ', saveResult);
console.warn('picture url ', data.uri);
}
};
i have taken permissions from android manifest and ios by adding required codes. (On Android) android manifest permissions
even in ios i am getting the same permission denied error. what should i do to work it. i don't wanna try RN File system.