fix(ReactVideoProps): add accessibility & testID in typing (#3434)
This commit is contained in:
parent
dd7bb54720
commit
d986b7bf57
@ -1,6 +1,6 @@
|
|||||||
import type {ISO639_1} from './language';
|
import type {ISO639_1} from './language';
|
||||||
import type {ReactVideoEvents} from './events';
|
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 VideoResizeMode from './ResizeMode';
|
||||||
import type FilterType from './FilterType';
|
import type FilterType from './FilterType';
|
||||||
|
|
||||||
@ -170,7 +170,7 @@ export enum PosterResizeModeType {
|
|||||||
STRETCH = 'stretch',
|
STRETCH = 'stretch',
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ReactVideoProps extends ReactVideoEvents {
|
export interface ReactVideoProps extends ReactVideoEvents, AccessibilityProps {
|
||||||
source?: ReactVideoSource;
|
source?: ReactVideoSource;
|
||||||
drm?: Drm;
|
drm?: Drm;
|
||||||
style?: StyleProp<ViewStyle>;
|
style?: StyleProp<ViewStyle>;
|
||||||
@ -215,6 +215,7 @@ export interface ReactVideoProps extends ReactVideoEvents {
|
|||||||
selectedVideoTrack?: SelectedVideoTrack; // android
|
selectedVideoTrack?: SelectedVideoTrack; // android
|
||||||
subtitleStyle?: SubtitleStyle; // android
|
subtitleStyle?: SubtitleStyle; // android
|
||||||
textTracks?: TextTracks;
|
textTracks?: TextTracks;
|
||||||
|
testID?: string;
|
||||||
trackId?: string; // Android
|
trackId?: string; // Android
|
||||||
useTextureView?: boolean; // Android
|
useTextureView?: boolean; // Android
|
||||||
useSecureView?: boolean; // Android
|
useSecureView?: boolean; // Android
|
||||||
|
Loading…
Reference in New Issue
Block a user