Skip to content

Commit

Permalink
fix: expo media library permissions race conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
isekovanic committed Nov 19, 2024
1 parent e8e3dd0 commit fc9b908
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package/expo-package/src/optionalDependencies/pickImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ export const pickImage = ImagePicker
return { cancelled: true };
}
}
return { cancelled: true };
} catch (error) {
console.log('Error while picking image', error);
return { cancelled: true };
}
}
: null;
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const pickImage = ImagePicker
}
} catch (error) {
console.log('Error picking image: ', error);
return { cancelled: true };
}
}
: null;

0 comments on commit fc9b908

Please sign in to comment.