From c721e9276197c5fc414d34efb662647408adb701 Mon Sep 17 00:00:00 2001 From: Lochlan Wansbrough Date: Mon, 4 May 2015 12:27:36 -0700 Subject: [PATCH] Fixes captureTarget bug --- Camera.ios.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Camera.ios.js b/Camera.ios.js index 0fecfef..0168eef 100644 --- a/Camera.ios.js +++ b/Camera.ios.js @@ -164,7 +164,7 @@ var Camera = React.createClass({ } if (typeof options.target === 'string') { - options.target = constants.CaptureMode[options.target]; + options.target = constants.CaptureTarget[options.target]; } NativeModules.CameraManager.capture(options, cb); diff --git a/package.json b/package.json index 811d77f..93f498a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "type" : "git", "url" : "https://github.com/lwansbrough/react-native-camera.git" }, - "version": "0.2.3", + "version": "0.2.4", "description": "A Camera component for React Native. Also reads barcodes.", "main": "Camera.ios.js", "author": "Lochlan Wansbrough (http://lwansbrough.com)",