chore(android): rework view type (#3940)
This commit is contained in:
11
src/types/ViewType.ts
Normal file
11
src/types/ViewType.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Define Available view type for android
|
||||
* these values shall match android spec, see ViewType.kt
|
||||
*/
|
||||
enum ResizeMode {
|
||||
TEXTURE = 0,
|
||||
SURFACE = 1,
|
||||
SURFACE_SECURE = 2,
|
||||
}
|
||||
|
||||
export default ResizeMode;
|
||||
@@ -5,5 +5,6 @@ export * from './language';
|
||||
export {default as Orientation} from './Orientation';
|
||||
export {default as ResizeMode} from './ResizeMode';
|
||||
export {default as TextTrackType} from './TextTrackType';
|
||||
export {default as ViewType} from './ViewType';
|
||||
export * from './video';
|
||||
export * from '../specs/VideoNativeComponent';
|
||||
|
||||
@@ -3,6 +3,7 @@ import type {ReactVideoEvents} from './events';
|
||||
import type {StyleProp, ViewProps, ViewStyle} from 'react-native';
|
||||
import type VideoResizeMode from './ResizeMode';
|
||||
import type FilterType from './FilterType';
|
||||
import type ViewType from './ViewType';
|
||||
|
||||
export type Headers = Record<string, string>;
|
||||
|
||||
@@ -256,8 +257,9 @@ export interface ReactVideoProps extends ReactVideoEvents, ViewProps {
|
||||
shutterColor?: string; // Android
|
||||
textTracks?: TextTracks;
|
||||
testID?: string;
|
||||
useTextureView?: boolean; // Android
|
||||
useSecureView?: boolean; // Android
|
||||
viewType?: ViewType;
|
||||
useTextureView?: boolean; // Android // deprecated
|
||||
useSecureView?: boolean; // Android // deprecated
|
||||
volume?: number;
|
||||
localSourceEncryptionKeyScheme?: string;
|
||||
debug?: DebugConfig;
|
||||
|
||||
Reference in New Issue
Block a user