Fix for RN 0.4.3 braking changes.
Fixes the breaking changes in React Native v0.4.3
This commit is contained in:
parent
57a32eb672
commit
3a25e3da7a
|
@ -1,9 +1,9 @@
|
||||||
var React = require('React');
|
var React = require('React');
|
||||||
var DeviceEventEmitter = require('RCTDeviceEventEmitter');
|
var DeviceEventEmitter = require('RCTDeviceEventEmitter');
|
||||||
var NativeModules = require('NativeModules');
|
var NativeModules = require('NativeModules');
|
||||||
var ReactIOSViewAttributes = require('ReactIOSViewAttributes');
|
var ReactNativeViewAttributes = require('ReactNativeViewAttributes');
|
||||||
var StyleSheet = require('StyleSheet');
|
var StyleSheet = require('StyleSheet');
|
||||||
var createReactIOSNativeComponentClass = require('createReactIOSNativeComponentClass');
|
var createReactNativeComponentClass = require('createReactNativeComponentClass');
|
||||||
var PropTypes = require('ReactPropTypes');
|
var PropTypes = require('ReactPropTypes');
|
||||||
var StyleSheetPropType = require('StyleSheetPropType');
|
var StyleSheetPropType = require('StyleSheetPropType');
|
||||||
var NativeMethodsMixin = require('NativeMethodsMixin');
|
var NativeMethodsMixin = require('NativeMethodsMixin');
|
||||||
|
@ -46,7 +46,7 @@ var Camera = React.createClass({
|
||||||
|
|
||||||
viewConfig: {
|
viewConfig: {
|
||||||
uiViewClassName: 'UIView',
|
uiViewClassName: 'UIView',
|
||||||
validAttributes: ReactIOSViewAttributes.UIView
|
validAttributes: ReactNativeViewAttributes.UIView
|
||||||
},
|
},
|
||||||
|
|
||||||
getDefaultProps() {
|
getDefaultProps() {
|
||||||
|
@ -172,8 +172,8 @@ var Camera = React.createClass({
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var RCTCamera = createReactIOSNativeComponentClass({
|
var RCTCamera = createReactNativeComponentClass({
|
||||||
validAttributes: merge(ReactIOSViewAttributes.UIView, {
|
validAttributes: merge(ReactNativeViewAttributes.UIView, {
|
||||||
aspect: true,
|
aspect: true,
|
||||||
type: true,
|
type: true,
|
||||||
orientation: true
|
orientation: true
|
||||||
|
|
Loading…
Reference in New Issue