Fixes captureTarget bug

This commit is contained in:
Lochlan Wansbrough 2015-05-04 12:27:36 -07:00
parent 631ea89087
commit c721e92761
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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 <lochie@live.com> (http://lwansbrough.com)",