ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.13k stars 1.56k forks source link

iOS - How to leverage Private Access of a user's Photo Library (Photos Picker) #1987

Open reinisb opened 1 year ago

reinisb commented 1 year ago

Version

Tell us which versions you are using:

Platform

Tell us to which platform this issue is related

Expected behaviour

It looks like most apps in iOS that only need read-only access to a user's photo library leverage the Private Access feature. What this means is that the user does not see the prompts to grant permissions for the app to view some or all photos of the photo library. As far as I understand under the hood Private Access leverages Photos Picker.

private access

Unfortunately, it does not seem that react-native-image-crop-picker works this way. Instead, it requires the user to grant permission to access photo library via prompt (context).

Is there a way to leverage Photos Picker and thus Private Access feature through react-native-image-crop-picker?

reinisb commented 1 year ago

@ivpusic Could you please have a look when you have a moment? Thank you!