Fix for RN 0.4.3 braking changes.

Fixes the breaking changes in React Native v0.4.3
This commit is contained in:
Dan Horrigan 2015-05-15 11:09:39 -04:00
parent 57a32eb672
commit 3a25e3da7a
1 changed files with 5 additions and 5 deletions

View File

@ -1,9 +1,9 @@
var React = require('React');
var DeviceEventEmitter = require('RCTDeviceEventEmitter');
var NativeModules = require('NativeModules');
var ReactIOSViewAttributes = require('ReactIOSViewAttributes');
var ReactNativeViewAttributes = require('ReactNativeViewAttributes');
var StyleSheet = require('StyleSheet');
var createReactIOSNativeComponentClass = require('createReactIOSNativeComponentClass');
var createReactNativeComponentClass = require('createReactNativeComponentClass');
var PropTypes = require('ReactPropTypes');
var StyleSheetPropType = require('StyleSheetPropType');
var NativeMethodsMixin = require('NativeMethodsMixin');
@ -46,7 +46,7 @@ var Camera = React.createClass({
viewConfig: {
uiViewClassName: 'UIView',
validAttributes: ReactIOSViewAttributes.UIView
validAttributes: ReactNativeViewAttributes.UIView
},
getDefaultProps() {
@ -172,8 +172,8 @@ var Camera = React.createClass({
});
var RCTCamera = createReactIOSNativeComponentClass({
validAttributes: merge(ReactIOSViewAttributes.UIView, {
var RCTCamera = createReactNativeComponentClass({
validAttributes: merge(ReactNativeViewAttributes.UIView, {
aspect: true,
type: true,
orientation: true