Commit 8e00f483 authored by Brent Vatne's avatar Brent Vatne
Browse files

Fix compatability with 0.7.1+

parent 69f4a35d
Loading
Loading
Loading
Loading
+6 −6
Changes for RCTVideoManager.m: 6 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -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"
    }
  };
}
+3 −3
Changes for Video.ios.js: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -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} />;