From fcc4f70ab2d1ddb0cedce3df0d3d0f1096351fac Mon Sep 17 00:00:00 2001 From: Kamil Lewandowski Date: Tue, 28 May 2019 21:53:51 +0200 Subject: [PATCH] Update index.d.ts (#35650) * Update index.d.ts * Update index.d.ts --- types/react-native-video/index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/types/react-native-video/index.d.ts b/types/react-native-video/index.d.ts index f25581bb90..60bb96ffd2 100644 --- a/types/react-native-video/index.d.ts +++ b/types/react-native-video/index.d.ts @@ -36,6 +36,12 @@ export interface LoadError { }; } +export interface OnSeekData { + currentTime: number; + seekTime: number; + target?: number; +} + export const TextTrackType: { SRT: 'application/x-subrip'; TTML: 'application/ttml+xml'; @@ -87,7 +93,7 @@ export interface VideoProperties extends ViewProps { onBuffer?(): void; onError?(error: LoadError): void; onProgress?(data: OnProgressData): void; - onSeek?(): void; + onSeek?(data: OnSeekData): void; onEnd?(): void; onFullscreenPlayerWillPresent?(): void; onFullscreenPlayerDidPresent?(): void;