Permission Camera Roll Error React Native

aore

Emmanuel Oreoluwa

Posted on August 8, 2019

Permission Camera Roll Error React Native

Am trying to access camera roll on my react native app and it not giving back feedback

This my code

onImageUpload = async () => {
const {status: cameraRollPerm} = await PermissionsAndroid.askAsync(
PermissionsAndroid.PERMISSIONS.CAMERA_ROLL,
try{
if (cameraRollPerm === 'granted') {
let pickerResult = await ImagePicker.lauchImageAsync({
allowsEditing: true,
aspect:[4,3]
});
console.log(
'ready to upload... pickerResult json:'+ JSON.stringify(pickerResult)
);

I tried

await PermissionsAndroid.request(
PermissionsAndroid.PERMISSIONS.CAMERA,

💖 💪 🙅 🚩
aore
Emmanuel Oreoluwa

Posted on August 8, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related