From 9f16c53509b4ee40fb037805e9846dbaf7f4a131 Mon Sep 17 00:00:00 2001 From: aarongrider Date: Tue, 23 Feb 2021 10:07:42 -0800 Subject: [PATCH] Update readme for additional clarity --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 483fbc3..644285c 100644 --- a/README.md +++ b/README.md @@ -54,11 +54,14 @@ Add the following uses-permission to your `AndroidManifest.xml` (usually found a #### iOS -Add the following usage description to your `Info.plist` (usually found at: `ios/PROJECT_NAME/`) +Add the following usage descriptions to your `Info.plist` (usually found at: `ios/PROJECT_NAME/`) ```xml NSCameraUsageDescription For taking photos + +NSPhotoLibraryUsageDescription +For saving photos ``` ## Running the example project @@ -81,14 +84,15 @@ import { CameraScreen } from 'react-native-camera-kit'; actions={{ rightButtonText: 'Done', leftButtonText: 'Cancel' }} onBottomButtonPressed={(event) => this.onBottomButtonPressed(event)} flashImages={{ + // optional, images for flash state on: require('path/to/image'), off: require('path/to/image'), auto: require('path/to/image'), }} - cameraFlipImage={require('path/to/image')} - captureButtonImage={require('path/to/image')} - torchOnImage={require('path/to/image')} - torchOffImage={require('path/to/image')} + cameraFlipImage={require('path/to/image')} // optional, image for flipping camera button + captureButtonImage={require('path/to/image')} // optional, image capture button + torchOnImage={require('path/to/image')} // optional, image for toggling on flash light + torchOffImage={require('path/to/image')} // optional, image for toggling off flash light hideControls={false} // (default false) optional, hides camera controls showCapturedImageCount={false} // (default false) optional, show count for photos taken during that capture session />