When a user wants to change the account profile picture and denies the app access to the gallery the app still launches the gallery for the user to select a picture. Below is my function
const selectPicture = async () => {
await Permissions.askAsync(Permissions.CAMERA_ROLL);
let result = await ImagePicker.launchImageLibraryAsync({
mediaTypes: ImagePicker.MediaTypeOptions.All,
allowsEditing: true,
aspect: [4, 3],
quality: 1,
});
if (!result.cancelled) handleInput("image", result.uri);
};