From bf3704ebd83ae20a5bed4cfeb6fbacf3a57cc3d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ramos?= Date: Thu, 22 Dec 2016 17:08:49 -0800 Subject: [PATCH] Add iOS permission information to CameraRoll.js Summary: As of iOS10 permission is required to access user photos and their galleries, I felt this really needed to be addressed. I hope to create a section dedicated to iOS permissions soon. Closes https://github.com/facebook/react-native/pull/11259 Differential Revision: D4364354 Pulled By: hramos fbshipit-source-id: 97bdeb09deba01995eebd038e00ccc84b08281c9 --- CameraRoll.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CameraRoll.js b/CameraRoll.js index 3a5cef1..2c80e81 100644 --- a/CameraRoll.js +++ b/CameraRoll.js @@ -112,6 +112,12 @@ var getPhotosReturnChecker = createStrictShapeTypeChecker({ * `CameraRoll` provides access to the local camera roll / gallery. * Before using this you must link the `RCTCameraRoll` library. * You can refer to [Linking](https://facebook.github.io/react-native/docs/linking-libraries-ios.html) for help. + * + * ### Permissions + * The user's permission is required in order to access the Camera Roll on devices running iOS 10 or later. + * Fill out the `NSCameraUsageDescription` key in your `Info.plist` with a string that describes how your + * app will use this data. This key will appear as `Privacy - Camera Usage Description` in Xcode. + * */ class CameraRoll {