diff --git a/src/components/VideoPlayer/types.ts b/src/components/VideoPlayer/types.ts index 8b9205ce8c9f..d27b1dcdbcdd 100644 --- a/src/components/VideoPlayer/types.ts +++ b/src/components/VideoPlayer/types.ts @@ -2,6 +2,8 @@ import type {Video} from 'expo-av'; import type {AVPlaybackStatus} from 'expo-av/build/AV'; import type {VideoFullscreenUpdateEvent, VideoReadyForDisplayEvent} from 'expo-av/build/Video.types'; import type {StyleProp, ViewStyle} from 'react-native'; +import type {ValueOf} from 'type-fest'; +import type CONST from '@src/CONST'; type VideoWithOnFullScreenUpdate = Video & {_onFullscreenUpdate: (event: VideoFullscreenUpdateEvent) => void}; @@ -11,19 +13,22 @@ type VideoPlayerProps = { resizeMode?: string; isLooping?: boolean; // style for the whole video player component - style: StyleProp; + style?: StyleProp; // style for the video player inside the component videoPlayerStyle?: StyleProp; // style for the video element inside the video player videoStyle?: StyleProp; videoControlsStyle?: StyleProp; - videoDuration: number; + videoDuration?: number; shouldUseSharedVideoElement?: boolean; shouldUseSmallVideoControls?: boolean; shouldShowVideoControls?: boolean; isVideoHovered?: boolean; onFullscreenUpdate?: (event: VideoFullscreenUpdateEvent) => void; onPlaybackStatusUpdate?: (status: AVPlaybackStatus) => void; + shouldUseControlsBottomMargin?: boolean; + controlsStatus?: ValueOf; + shouldPlay?: boolean; }; export type {VideoPlayerProps, VideoWithOnFullScreenUpdate};