diff --git a/RCTVideoManager.m b/RCTVideoManager.m index 2ccffdf3..9346f6f2 100644 --- a/RCTVideoManager.m +++ b/RCTVideoManager.m @@ -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" } }; } diff --git a/Video.ios.js b/Video.ios.js index 6266a73a..69faff53 100644 --- a/Video.ios.js +++ b/Video.ios.js @@ -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 ;