diff --git a/Video.ios.js b/Video.ios.js index c946c445..21f4644f 100644 --- a/Video.ios.js +++ b/Video.ios.js @@ -1,8 +1,8 @@ var React = require('react-native'); var NativeModules = require('NativeModules'); -var ReactIOSViewAttributes = require('ReactIOSViewAttributes'); +var ReactNativeViewAttributes = require('ReactNativeViewAttributes'); var StyleSheet = require('StyleSheet'); -var createReactIOSNativeComponentClass = require('createReactIOSNativeComponentClass'); +var createReactIOSNativeComponentClass = require('createReactNativeComponentClass'); var PropTypes = require('ReactPropTypes'); var StyleSheetPropType = require('StyleSheetPropType'); var VideoResizeMode = require('./VideoResizeMode'); @@ -33,7 +33,7 @@ var Video = React.createClass({ viewConfig: { uiViewClassName: 'UIView', - validAttributes: ReactIOSViewAttributes.UIView + validAttributes: ReactNativeViewAttributes.UIView }, _onLoadStart(event) { @@ -100,7 +100,7 @@ var Video = React.createClass({ }); var RCTVideo = createReactIOSNativeComponentClass({ - validAttributes: merge(ReactIOSViewAttributes.UIView, + validAttributes: merge(ReactNativeViewAttributes.UIView, {src: {diff: deepDiffer}, resizeMode: true, repeat: true, seek: true, paused: true, muted: true, volume: true, rate: true}), uiViewClassName: 'RCTVideo', diff --git a/package.json b/package.json index d680027d..b625d3fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-video", - "version": "0.3.6", + "version": "0.4.0", "description": "A