react-native-awesome-medialib
Version:
A useful media selector module base on native component
11 lines (10 loc) • 525 B
TypeScript
import type { ImageResult } from '../components/NativeCamera';
export declare const takePhoto: (isSquare: boolean) => Promise<{
url: string;
}>;
export declare const switchCamera: () => void;
export declare const deletePhoto: (uri: string) => void;
export declare const cropPhotoToSquare: (uri: string, x: number, y: number, width: number) => Promise<ImageResult>;
export declare const startRunning: () => void;
export declare const stopRunning: () => void;
export declare const saveImage: (url: string) => Promise<any>;