From d986b7bf57f8fe49cbf5f507efde4aeb28ee34f8 Mon Sep 17 00:00:00 2001 From: Delphine Bugner Date: Thu, 21 Dec 2023 07:44:11 +0100 Subject: [PATCH] fix(ReactVideoProps): add accessibility & testID in typing (#3434) --- src/types/video.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/types/video.ts b/src/types/video.ts index 24f896c2..5d6adf5d 100644 --- a/src/types/video.ts +++ b/src/types/video.ts @@ -1,6 +1,6 @@ import type {ISO639_1} from './language'; import type {ReactVideoEvents} from './events'; -import type {StyleProp, ViewStyle} from 'react-native'; +import type {AccessibilityProps, StyleProp, ViewStyle} from 'react-native'; import type VideoResizeMode from './ResizeMode'; import type FilterType from './FilterType'; @@ -170,7 +170,7 @@ export enum PosterResizeModeType { STRETCH = 'stretch', } -export interface ReactVideoProps extends ReactVideoEvents { +export interface ReactVideoProps extends ReactVideoEvents, AccessibilityProps { source?: ReactVideoSource; drm?: Drm; style?: StyleProp; @@ -215,6 +215,7 @@ export interface ReactVideoProps extends ReactVideoEvents { selectedVideoTrack?: SelectedVideoTrack; // android subtitleStyle?: SubtitleStyle; // android textTracks?: TextTracks; + testID?: string; trackId?: string; // Android useTextureView?: boolean; // Android useSecureView?: boolean; // Android