UNPKG

react-native-whip-whep

Version:

An implementation of WHIP and WHEP protocols functionalities for React Native.

30 lines 1.64 kB
import { requireNativeViewManager } from "expo-modules-core"; import * as React from "react"; import { PlayerType, } from "./ReactNativeMobileWhepClient.types"; const NativeViewBase = requireNativeViewManager("ReactNativeMobileWhepClientViewModule"); const NativeView = NativeViewBase; /** * A component that renders a native view for WHEP player type. * * This component forwards a ref to the native view, allowing for direct manipulation * of the component instance. It accepts style and other props defined in * ReactNativeMobileWhepClientViewProps. * * @param {ReactNativeMobileWhepClientViewProps} props - The properties to customize the component. * @param {React.ForwardedRef<WhepClientViewRef>} ref - Ref to the component instance. * @returns {JSX.Element} The rendered component. */ export const WhepClientView = React.forwardRef((props, ref) => (<NativeView {...props} playerType={PlayerType.WHEP} ref={ref}/>)); /** * A component that renders a native view for WHIP player type. * * This component forwards a ref to the native view, allowing for direct manipulation * of the component instance. It accepts style and other props defined in * ReactNativeMobileWhepClientViewProps. * * @param {ReactNativeMobileWhepClientViewProps} props - The properties to customize the component. * @param {React.ForwardedRef<WhepClientViewRef>} ref - Ref to the component instance. * @returns {JSX.Element} The rendered component. */ export const WhipClientView = React.forwardRef((props, ref) => (<NativeView {...props} playerType={PlayerType.WHIP} ref={ref}/>)); //# sourceMappingURL=ReactNativeMobileWhepClientView.js.map