[Unhandled promise rejection: Error: User rejected permissions]

openCamera = async () =>{
  const {status} = await Permissions.askAsync(Permissions.CAMERA, Permissions.CAMERA_ROLL);
  if(status == 'granted'){
    console.log("abcd")
  let result = await ImagePicker.launchCameraAsync({
    allowsEditing: true,
    aspect: [4, 3],
  });
  console.log(result);
}

};

even though the status is granted for Camera and Camera roll it doesnt work

Hey @abhinavbb77,

You can’t pass multiple Permissions to askAsync. You’ll need to separate them or use Promise.all logic.

Cheers,
Adam

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.