2017-01-30 13:06:30 +00:00
|
|
|
declare module "react-native-image-resizer" {
|
2017-07-18 21:05:26 +00:00
|
|
|
export interface Response {
|
|
|
|
path: string;
|
|
|
|
uri: string;
|
|
|
|
size?: number;
|
|
|
|
name?: string;
|
|
|
|
}
|
2017-01-30 13:06:30 +00:00
|
|
|
export function createResizedImage(
|
|
|
|
uri: string, width: number, height: number,
|
|
|
|
format: "PNG" | "JPEG" | "WEBP", quality: number,
|
|
|
|
rotation?: number, outputPath?: string
|
2017-07-18 21:05:26 +00:00
|
|
|
): Promise<Response>;
|
2017-01-30 13:06:30 +00:00
|
|
|
}
|