21 lines
430 B
TypeScript
21 lines
430 B
TypeScript
declare module 'react-native-image-resizer' {
|
|
export interface Response {
|
|
path: string;
|
|
uri: string;
|
|
size?: number;
|
|
name?: string;
|
|
}
|
|
|
|
export default class ImageResizer {
|
|
static createResizedImage(
|
|
uri: string,
|
|
width: number,
|
|
height: number,
|
|
format: 'PNG' | 'JPEG' | 'WEBP',
|
|
quality: number,
|
|
rotation?: number,
|
|
outputPath?: string
|
|
): Promise<Response>;
|
|
}
|
|
}
|