From a5df63eec8004c95a11928104312894241fd14dd Mon Sep 17 00:00:00 2001 From: Andrew McCloud Date: Mon, 27 Apr 2015 23:06:35 -0700 Subject: [PATCH] Fix undefined variables --- Camera.ios.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Camera.ios.js b/Camera.ios.js index d959c1b..d47baaf 100644 --- a/Camera.ios.js +++ b/Camera.ios.js @@ -48,9 +48,9 @@ var Camera = React.createClass({ render: function() { var style = flattenStyle([styles.base, this.props.style]); - aspect = NativeModules.CameraManager.aspects[this.state.aspect]; - type = NativeModules.CameraManager.cameras[this.state.type]; - orientation = NativeModules.CameraManager.orientations[this.state.orientation]; + var aspect = NativeModules.CameraManager.aspects[this.state.aspect]; + var type = NativeModules.CameraManager.cameras[this.state.type]; + var orientation = NativeModules.CameraManager.orientations[this.state.orientation]; var nativeProps = merge(this.props, { style,