diff --git a/src/NativeApiVideoLiveStreamView.ts b/src/NativeApiVideoLiveStreamView.ts index e8f6d46..262fd04 100644 --- a/src/NativeApiVideoLiveStreamView.ts +++ b/src/NativeApiVideoLiveStreamView.ts @@ -15,8 +15,6 @@ export type Resolution = Readonly<{ height: Int32; }>; -export type PredefinedResolution = '240p' | '360p' | '480p' | '720p' | '1080p'; - export type OnConnectionFailedEvent = Readonly<{ code: string; }>; diff --git a/src/index.tsx b/src/index.tsx index 9d645f5..d0aa825 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -8,9 +8,10 @@ import NativeApiVideoLiveStreamView, { OnConnectionFailedEvent, OnPermissionsDeniedEvent, OnStartStreamingEvent, - PredefinedResolution, } from './NativeApiVideoLiveStreamView'; +export type PredefinedResolution = "240p" | "360p" | "480p" | "720p" | "1080p"; + type ApiVideoLiveStreamProps = { style?: ViewStyle; camera?: 'front' | 'back'; @@ -218,7 +219,4 @@ const ApiVideoLiveStreamView = forwardRef< }); export { ApiVideoLiveStreamView }; -export type { - Resolution, - PredefinedResolution, -} from './NativeApiVideoLiveStreamView'; +export type { Resolution } from './NativeApiVideoLiveStreamView';