Fix undefined variables

This commit is contained in:
Andrew McCloud 2015-04-27 23:06:35 -07:00
parent fdd947159e
commit a5df63eec8
1 changed files with 3 additions and 3 deletions

View File

@ -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,