Take a photo
Your task After the permission check in takePhoto(), open the camera: const result = await ImagePicker.launchCameraAsync();. Then keep the photo: if (!result.canceled) setPhoto(result.assets[0].uri);. Tap Take a photo to try it.
Getting the editor ready