Fixes captureTarget bug
This commit is contained in:
parent
631ea89087
commit
c721e92761
|
@ -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);
|
||||
|
|
|
@ -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)",
|
||||
|
|
Loading…
Reference in New Issue