Fix compatability with 0.7.1+
This commit is contained in:
parent
69f4a35de7
commit
8e00f4834f
@ -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"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -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} />;
|
||||||
|
Loading…
Reference in New Issue
Block a user