[react-native-video] Add onProgress data

This commit is contained in:
abrahambotros
2017-09-02 09:42:57 -07:00
parent 10f72f108f
commit 8563b0ce6a

View File

@@ -1,6 +1,7 @@
// Type definitions for react-native-video 1.0
// Type definitions for react-native-video 2.0
// Project: https://github.com/react-native-community/react-native-video
// Definitions by: HuHuanming <https://github.com/huhuanming>
// abrahambotros <https://github.com/abrahambotros>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -48,7 +49,10 @@ export interface VideoProperties extends ViewProperties {
onLoad?(): void;
onBuffer?(): void;
onError?(): void;
onProgress?(): void;
onProgress?(data: {
currentTime: number,
playableDuration: number,
}): void;
onSeek?(): void;
onEnd?(): void;
onFullscreenPlayerWillPresent?(): void;