bitmovin-player-react-native
Version:
Official React Native bindings for Bitmovin's mobile Player SDKs.
30 lines • 1.1 kB
TypeScript
import { NativePlayerViewEvents } from './nativeEvents';
import { ViewStyle } from 'react-native';
import { ScalingMode } from '../../styleConfig';
import { PlayerViewConfig } from './playerViewConfig';
export interface NativePlayerViewConfig {
playerViewConfig?: PlayerViewConfig;
playerId: string;
customMessageHandlerBridgeId?: string;
enableBackgroundPlayback?: boolean;
isPictureInPictureEnabledOnPlayer?: boolean;
userInterfaceTypeName?: string;
}
/**
* Props type for `NativePlayerView` native component.
* Mostly maps the event props defined in native code.
*/
export interface NativePlayerViewProps extends NativePlayerViewEvents {
ref?: React.RefObject<null>;
isFullscreenRequested?: boolean;
scalingMode?: ScalingMode;
isPictureInPictureRequested?: boolean;
style?: ViewStyle;
config: NativePlayerViewConfig;
fullscreenBridgeId?: string;
}
/**
* Native host component bridging Bitmovin's `PlayerView`.
*/
export declare const NativePlayerView: import("react").ComponentType<NativePlayerViewProps>;
//# sourceMappingURL=native.d.ts.map