mirror of
https://github.com/status-im/react-native-cameraroll.git
synced 2025-02-04 22:03:24 +00:00
Joshua Gross
8556340345
Fix permissions regression in RCTCameraRollManager
Summary: In the past (pre D13593314), ALAssetsLibrary camera operations would pop up a permissions dialogue when appropriate and block until the user responded to the dialogue. The calls that we're now using with PHPhotoLibrary immediately return if we don't have permission to access the photo library or haven't asked before, and then asynchronously pop up a permissions dialogue, causing every first photo interaction to fail. Instead we now explicitly check for permissions or request permissions before any operations. Reviewed By: PeteTheHeat Differential Revision: D13620079 fbshipit-source-id: e1befc0ddaec2c1b3334e361f5ae3a3efc5da71d
Description
CameraRoll is a react-native native module that provides access to the local camera roll or photo library.
Languages
Java
37.4%
Objective-C
31.2%
JavaScript
20.3%
TypeScript
6.9%
Ruby
2.2%
Other
2%