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

22 lines
417 B
Plaintext
Raw 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 function createResizedImage(
2017-08-07 07:06:02 +00:00
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
declare export default {
createResizedImage: createResizedImage
};