Fix Flow type default export (#99)

The actual JS module only has a default export of an object with `createResizedImage` function.

This PR update the Flow definition to match the usage of the module. This fixes the following flow error:

```
 18: import ImageResizer from 'react-native-image-resizer';
            ^^^^^^^^^^^^ Default import from `react-native-image-resizer`. This module has no default export.
```
This commit is contained in:
Sirui Li 2017-08-31 15:16:18 +08:00 committed by Florian Rival
parent e7c4ef5473
commit 7b9445743c
1 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,7 @@ declare type ResizedImageInfo = {
name?: string name?: string
}; };
declare export function createResizedImage( declare function createResizedImage(
uri: string, uri: string,
width: number, width: number,
height: number, height: number,
@ -16,3 +16,6 @@ declare export function createResizedImage(
outputPath?: string outputPath?: string
): Promise<ResizedImageInfo>; ): Promise<ResizedImageInfo>;
declare export default {
createResizedImage: createResizedImage
};