mirror of
https://github.com/status-im/react-native-image-crop-picker.git
synced 2025-02-23 10:58:16 +00:00
Add typescript definition file
This commit is contained in:
parent
34d80f2327
commit
97b74d1f9a
38
index.d.ts
vendored
Normal file
38
index.d.ts
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
declare module "react-native-image-crop-picker" {
|
||||
export interface Options {
|
||||
cropping?: boolean;
|
||||
width?: number;
|
||||
height?: number;
|
||||
multiple?: boolean;
|
||||
path?: string;
|
||||
includeBase64?: boolean;
|
||||
cropperTintColor?: string;
|
||||
cropperCircleOverlay?: boolean;
|
||||
maxFiles?: number;
|
||||
waitAnimationEnd?: boolean;
|
||||
smartAlbums?: string[];
|
||||
useFrontCamera?: boolean;
|
||||
compressVideoPreset?: string;
|
||||
compressImageMaxWidth?: number;
|
||||
compressImageMaxHeight?: number;
|
||||
compressImageQuality?: number;
|
||||
loadingLabelText?: string;
|
||||
mediaType?: string;
|
||||
showsSelectedCount?: boolean;
|
||||
showCropGuidelines?: boolean;
|
||||
hideBottomControls?: boolean;
|
||||
enableRotationGesture?: boolean;
|
||||
}
|
||||
|
||||
export interface Image {
|
||||
path: string;
|
||||
size: number;
|
||||
data: null | string;
|
||||
width: number;
|
||||
height: number;
|
||||
mime: string;
|
||||
}
|
||||
|
||||
export function openPicker(options: Options): Promise<Image | Image[]>;
|
||||
export function openCamera(options: Options): Promise<Image | Image[]>;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user