Fix compatability with 0.7.1+

This commit is contained in:
Brent Vatne 2015-07-15 08:13:24 -07:00
parent 69f4a35de7
commit 8e00f4834f
2 changed files with 9 additions and 9 deletions

View File

@ -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"
}
};
}

View File

@ -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} />;