File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
packages/uikit-react-native/src/platform Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff 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
101101export interface MediaServiceInterface {
102102 VideoComponent < Props = { } > ( props : VideoProps & Props ) : JSX . Element ;
You can’t perform that action at this time.
0 commit comments