14 lines
398 B
TypeScript
14 lines
398 B
TypeScript
declare module "react-native-image-resizer" {
|
|
export interface Response {
|
|
path: string;
|
|
uri: string;
|
|
size?: number;
|
|
name?: string;
|
|
}
|
|
export function createResizedImage(
|
|
uri: string, width: number, height: number,
|
|
format: "PNG" | "JPEG" | "WEBP", quality: number,
|
|
rotation?: number, outputPath?: string
|
|
): Promise<Response>;
|
|
}
|