From 6fe07c48ae3023c7f2106593f984033d426fba60 Mon Sep 17 00:00:00 2001 From: James Date: Fri, 18 Nov 2016 22:42:03 +0000 Subject: [PATCH] =?UTF-8?q?Explicitly=20added=20instructions=20for=20the?= =?UTF-8?q?=20Camera=20Usage=20Description=20for=20iO=E2=80=A6=20(#478)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Explicitly added instructions for the Camera Usage Description for iOS 10 * Added NSPhotLib field as well --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c502b77..1c0c63d 100644 --- a/README.md +++ b/README.md @@ -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: +``` +NSCameraUsageDescription +Your message to user when the camera is accessed for the first time +NSPhotoLibraryUsageDescription +Your message to user when the photo library is access for the first time +``` ### Mostly automatic install with react-native 1. `npm install react-native-camera@https://github.com/lwansbrough/react-native-camera.git --save`