Ask for permission, and handle No
Your task At the start of takePhoto(), ask first: const { granted } = await ImagePicker.requestCameraPermissionsAsync();. If it isn't granted, show the message: if (!granted) { setDenied(true); return; }. Then tap Take a photo: this person says No.
Getting the editor ready