Make flow types update to date with proptypes with ImageSource

Summary:
As the task covered, we would like to update the ImageSource flow type.

Edit the flow types for ImageSource to map to the propTypes ImageSourcePropType.js

Reviewed By: mmmulani

Differential Revision: D4573836

fbshipit-source-id: ef3f5365e00b4926c75188f345811f5cfa4bfd3c
This commit is contained in:
Charles Chen 2017-02-16 15:01:56 -08:00 committed by Facebook Github Bot
parent 11e59e3ff4
commit 274e7ba592
1 changed files with 14 additions and 2 deletions

View File

@ -11,6 +11,18 @@
*/
'use strict';
export type ImageSource = {
// This is to sync with ImageSourcePropTypes.js.
type ImageURISource = {
uri?: string,
} | number;
bundle?: string,
method?: string,
headers?: Object,
body?: string,
cache?: 'default' | 'reload' | 'force-cache' | 'only-if-cached',
width?: number,
height?: number,
scale?: number,
};
export type ImageSource = ImageURISource | number | Array<ImageURISource>;