Fix compatability with 0.7.1+
This commit is contained in:
parent
69f4a35de7
commit
8e00f4834f
@ -20,22 +20,22 @@ RCT_EXPORT_MODULE();
|
||||
{
|
||||
return @{
|
||||
RNVideoEventLoading: @{
|
||||
@"registrationName": @"onLoadStart"
|
||||
@"registrationName": @"onVideoLoadStart"
|
||||
},
|
||||
RNVideoEventLoaded: @{
|
||||
@"registrationName": @"onLoad"
|
||||
@"registrationName": @"onVideoLoad"
|
||||
},
|
||||
RNVideoEventLoadingError: @{
|
||||
@"registrationName": @"onError"
|
||||
@"registrationName": @"onVideoError"
|
||||
},
|
||||
RNVideoEventProgress: @{
|
||||
@"registrationName": @"onProgress"
|
||||
@"registrationName": @"onVideoProgress"
|
||||
},
|
||||
RNVideoEventSeek: @{
|
||||
@"registrationName": @"onSeek"
|
||||
@"registrationName": @"onVideoSeek"
|
||||
},
|
||||
RNVideoEventEnd: @{
|
||||
@"registrationName": @"onEnd"
|
||||
@"registrationName": @"onVideoEnd"
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -99,9 +99,9 @@ var Video = React.createClass({
|
||||
isAsset,
|
||||
type: source.type || 'mp4'
|
||||
},
|
||||
onLoad: this._onLoad,
|
||||
onProgress: this._onProgress,
|
||||
onEnd: this._onEnd,
|
||||
onVideoLoad: this._onLoad,
|
||||
onVideoProgress: this._onProgress,
|
||||
onVideoEnd: this._onEnd,
|
||||
});
|
||||
|
||||
return <RCTVideo {... nativeProps} />;
|
||||
|
Loading…
Reference in New Issue
Block a user