jeanpan / react-native-camera-roll-picker

📷 A React Native component providing images selection from camera roll
https://www.npmjs.com/package/react-native-camera-roll-picker
MIT License
422 stars 176 forks source link

Check and request for read permission on Android. #114

Open joshuapinter opened 3 years ago

joshuapinter commented 3 years ago

This is required on Android 10+.

Otherwise, no images or videos will be shown.

Also confirmed to be working on Android 5, which doesn't show the request if the permission is already added to the app's AndroidManifest file.

The check and request method was pulled directly from cameraroll's README, with the exception of just checking the READ permission instead of the WRITE permission:

https://github.com/react-native-cameraroll/react-native-cameraroll#permissions.

On First Launch

Permissions

After Deny and Relaunch

Permissions denied the first time

After Allow

AFTER Android 10