···2020}
21212222export function usePhotoLibraryPermission() {
2323- const [res, requestPermission] = MediaLibrary.usePermissions()
2323+ const [res, requestPermission] = MediaLibrary.usePermissions({
2424+ granularPermissions: ['photo'],
2525+ })
2426 const requestPhotoAccessIfNeeded = async () => {
2527 // On the, we use <input type="file"> to produce a filepicker
2628 // This does not need any permission granting.