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
This commit is contained in:
Héctor Ramos 2016-12-22 17:08:49 -08:00 committed by Facebook Github Bot
parent d777e70923
commit bf3704ebd8
1 changed files with 6 additions and 0 deletions

View File

@ -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 {