Making ImageURISource exact
Reviewed By: yungsters Differential Revision: D7984204 fbshipit-source-id: ccd2627b72da5c97f046c895652fdf7cc0b3db40
This commit is contained in:
parent
0fe72579be
commit
a9a612bfb6
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
// This is to sync with ImageSourcePropTypes.js.
|
// This is to sync with ImageSourcePropTypes.js.
|
||||||
|
|
||||||
type ImageURISource = {
|
type ImageURISource = $ReadOnly<{|
|
||||||
uri?: string,
|
uri?: string,
|
||||||
bundle?: string,
|
bundle?: string,
|
||||||
method?: string,
|
method?: string,
|
||||||
|
@ -21,6 +21,6 @@ type ImageURISource = {
|
||||||
width?: number,
|
width?: number,
|
||||||
height?: number,
|
height?: number,
|
||||||
scale?: number,
|
scale?: number,
|
||||||
};
|
|}>;
|
||||||
|
|
||||||
export type ImageSource = ImageURISource | number | Array<ImageURISource>;
|
export type ImageSource = ImageURISource | number | Array<ImageURISource>;
|
||||||
|
|
Loading…
Reference in New Issue