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