mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-06-12 06:40:52 +00:00
Add support for repeat prop
This commit is contained in:
+2
-1
@@ -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',
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user