react-native-image-resizer/index.js.flow

19 lines
355 B
Plaintext
Raw Permalink Normal View History

2017-08-07 07:06:02 +00:00
// @flow
declare type ResizedImageInfo = {
path: string,
uri: string,
size?: number,
name?: string
};
2017-08-07 07:06:02 +00:00
declare export function createResizedImage(
uri: string,
width: number,
height: number,
format: 'PNG' | 'JPEG' | 'WEBP',
quality: number,
rotation?: number,
outputPath?: string
): Promise<ResizedImageInfo>;
2017-08-07 07:06:02 +00:00