21 lines
430 B
TypeScript
Raw Normal View History

2018-06-13 19:34:15 +02:00
declare module 'react-native-image-resizer' {
export interface Response {
path: string;
uri: string;
size?: number;
name?: string;
}
2018-06-13 19:34:15 +02:00
export default class ImageResizer {
static createResizedImage(
uri: string,
width: number,
height: number,
format: 'PNG' | 'JPEG' | 'WEBP',
quality: number,
rotation?: number,
outputPath?: string
): Promise<Response>;
}
2017-01-30 14:06:30 +01:00
}