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:
parent
11e59e3ff4
commit
274e7ba592
|
@ -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>;
|
||||
|
|
Loading…
Reference in New Issue