-
-
Notifications
You must be signed in to change notification settings - Fork 847
Open
Labels
feature requestNew feature or requestNew feature or request
Description
Why it is needed?
When requesting gallery access (READ_MEDIA_IMAGES) on Android 14+, if the user selects "Limited Access" and chooses specific images, the request function still returns the permission status as denied instead of indicating that limited access was granted.
Possible implementation
This feature would add support for returning a limited permission status (e.g. RESULTS.LIMITED) when the user grants partial access to selected photos.
Code sample
import { PERMISSIONS, request, RESULTS } from 'react-native-permissions';
async function requestGalleryPermission() {
const result = await request(
Platform.select({
ios: PERMISSIONS.IOS.PHOTO_LIBRARY,
android: PERMISSIONS.ANDROID.READ_MEDIA_IMAGES,
})
);
console.log('Permission result:', result);
}
Permission result: denied
Metadata
Metadata
Assignees
Labels
feature requestNew feature or requestNew feature or request