mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 20:25:33 +08:00
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:
committed by
Facebook Github Bot
parent
11e59e3ff4
commit
274e7ba592
@@ -11,6 +11,18 @@
|
|||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
export type ImageSource = {
|
// This is to sync with ImageSourcePropTypes.js.
|
||||||
|
|
||||||
|
type ImageURISource = {
|
||||||
uri?: string,
|
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>;
|
||||||
|
|||||||
Reference in New Issue
Block a user