Skip to content

Commit

Permalink
fix(): move PredefinedResolution to index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-lando committed Feb 21, 2024
1 parent f5375d6 commit d9533c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/NativeApiVideoLiveStreamView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ export type Resolution = Readonly<{
height: Int32;
}>;

export type PredefinedResolution = '240p' | '360p' | '480p' | '720p' | '1080p';

export type OnConnectionFailedEvent = Readonly<{
code: string;
}>;
Expand Down
8 changes: 3 additions & 5 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import NativeApiVideoLiveStreamView, {
OnConnectionFailedEvent,
OnPermissionsDeniedEvent,
OnStartStreamingEvent,
PredefinedResolution,
} from './NativeApiVideoLiveStreamView';

export type PredefinedResolution = "240p" | "360p" | "480p" | "720p" | "1080p";

Check failure on line 13 in src/index.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `"240p"·|·"360p"·|·"480p"·|·"720p"·|·"1080p"` with `'240p'·|·'360p'·|·'480p'·|·'720p'·|·'1080p'`

type ApiVideoLiveStreamProps = {
style?: ViewStyle;
camera?: 'front' | 'back';
Expand Down Expand Up @@ -218,7 +219,4 @@ const ApiVideoLiveStreamView = forwardRef<
});

export { ApiVideoLiveStreamView };
export type {
Resolution,
PredefinedResolution,
} from './NativeApiVideoLiveStreamView';
export type { Resolution } from './NativeApiVideoLiveStreamView';

0 comments on commit d9533c8

Please sign in to comment.