Add support for repeat prop

This commit is contained in:
Brent Vatne
2015-03-30 23:29:15 -07:00
parent ac3d655651
commit 5408fafff8
5 changed files with 17 additions and 6 deletions
+2 -1
View File
@@ -15,6 +15,7 @@ var Video = React.createClass({
propTypes: {
source: PropTypes.string,
style: StyleSheetPropType(VideoStylePropTypes),
repeat: PropTypes.bool,
},
mixins: [NativeMethodsMixin],
@@ -49,7 +50,7 @@ var Video = React.createClass({
});
var RCTVideo = createReactIOSNativeComponentClass({
validAttributes: merge(ReactIOSViewAttributes.UIView, {src: true, resizeMode: true}),
validAttributes: merge(ReactIOSViewAttributes.UIView, {src: true, resizeMode: true, repeat: true}),
uiViewClassName: 'RCTVideo',
});