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 @{ return @{
RNVideoEventLoading: @{ RNVideoEventLoading: @{
@"registrationName": @"onLoadStart" @"registrationName": @"onVideoLoadStart"
}, },
RNVideoEventLoaded: @{ RNVideoEventLoaded: @{
@"registrationName": @"onLoad" @"registrationName": @"onVideoLoad"
}, },
RNVideoEventLoadingError: @{ RNVideoEventLoadingError: @{
@"registrationName": @"onError" @"registrationName": @"onVideoError"
}, },
RNVideoEventProgress: @{ RNVideoEventProgress: @{
@"registrationName": @"onProgress" @"registrationName": @"onVideoProgress"
}, },
RNVideoEventSeek: @{ RNVideoEventSeek: @{
@"registrationName": @"onSeek" @"registrationName": @"onVideoSeek"
}, },
RNVideoEventEnd: @{ RNVideoEventEnd: @{
@"registrationName": @"onEnd" @"registrationName": @"onVideoEnd"
} }
}; };
} }

View File

@ -99,9 +99,9 @@ var Video = React.createClass({
isAsset, isAsset,
type: source.type || 'mp4' type: source.type || 'mp4'
}, },
onLoad: this._onLoad, onVideoLoad: this._onLoad,
onProgress: this._onProgress, onVideoProgress: this._onProgress,
onEnd: this._onEnd, onVideoEnd: this._onEnd,
}); });
return <RCTVideo {... nativeProps} />; return <RCTVideo {... nativeProps} />;