Skip to content

Commit 1b0c1dc

Browse files
authored
Merge pull request #116 from sendbird/chore/export-media-service-types
chore(CLNP-552): export media service related types
2 parents 7660b45 + a5cb53b commit 1b0c1dc

File tree

1 file changed

+9
-9
lines changed
  • packages/uikit-react-native/src/platform

1 file changed

+9
-9
lines changed

packages/uikit-react-native/src/platform/types.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,20 @@ export interface FileSystemServiceInterface {
6161
}
6262

6363
// ---------- MediaService ---------- //
64-
interface VideoProps {
64+
export type VideoProps = {
6565
source: { uri: string } | number;
6666
resizeMode?: 'cover' | 'contain' | 'stretch';
6767
onLoad?: () => void;
68-
}
69-
interface GetVideoThumbnailOptions {
68+
};
69+
70+
export type GetVideoThumbnailOptions = {
7071
url: string;
7172
timeMills?: number;
7273
quality?: number;
73-
}
74+
};
75+
export type GetVideoThumbnailResult = Promise<{ path: string } | null>;
7476

75-
interface CompressImageOptions {
77+
export type CompressImageOptions = {
7678
/**
7779
* A uri of image file to compress
7880
* */
@@ -93,10 +95,8 @@ interface CompressImageOptions {
9395
* 1 means highest quality and 0 the lowest quality.
9496
* */
9597
compressionRate?: number;
96-
}
97-
98-
type GetVideoThumbnailResult = Promise<{ path: string } | null>;
99-
type CompressImageResult = Promise<{ uri: string; size: number } | null>;
98+
};
99+
export type CompressImageResult = Promise<{ uri: string; size: number } | null>;
100100

101101
export interface MediaServiceInterface {
102102
VideoComponent<Props = {}>(props: VideoProps & Props): JSX.Element;

0 commit comments

Comments
 (0)