From 8e00f4834fedb9064f84b4d489ec835009fe6ba5 Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Wed, 15 Jul 2015 08:13:24 -0700 Subject: [PATCH] Fix compatability with 0.7.1+ --- RCTVideoManager.m | 12 ++++++------ Video.ios.js | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) 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 ;