Skip to content

Commit

Permalink
fix(ReactVideoProps): add accessibility & testID in typing (#3434)
Browse files Browse the repository at this point in the history
  • Loading branch information
delphinebugner committed Dec 21, 2023
1 parent dd7bb54 commit d986b7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/types/video.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -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<ViewStyle>;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d986b7b

Please sign in to comment.