Explicitly added instructions for the Camera Usage Description for iO… (#478)

* Explicitly added instructions for the Camera Usage Description for iOS 10

* Added NSPhotLib field as well
This commit is contained in:
James 2016-11-18 22:42:03 +00:00 committed by Nicolas Charpentier
parent a2a6d028a4
commit 6fe07c48ae
1 changed files with 7 additions and 1 deletions

View File

@ -13,7 +13,13 @@ A camera module for React Native.
### Requirements
1. JDK >= 1.7 (if you run on 1.6 you will get an error on "_cameras = new HashMap<>();")
2. With iOS 10 and higher you need to add the "Privacy - Camera Usage Description" key to the info.plist of your project.
2. With iOS 10 and higher you need to add the "Privacy - Camera Usage Description" key to the info.plist of your project. This should be found in 'your_project/ios/your_project/Info.plist'. Add the following code:
```
<key>NSCameraUsageDescription</key>
<string>Your message to user when the camera is accessed for the first time</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Your message to user when the photo library is access for the first time</string>
```
### Mostly automatic install with react-native
1. `npm install react-native-camera@https://github.com/lwansbrough/react-native-camera.git --save`