2015-04-08 01:26:09 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
*
|
2018-02-17 02:24:55 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2015-04-08 01:26:09 +00:00
|
|
|
*
|
|
|
|
* @providesModule ImageSource
|
|
|
|
* @flow
|
2018-01-15 03:32:26 +00:00
|
|
|
* @format
|
2015-04-08 01:26:09 +00:00
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
2017-02-16 23:01:56 +00:00
|
|
|
// This is to sync with ImageSourcePropTypes.js.
|
|
|
|
|
|
|
|
type ImageURISource = {
|
2017-01-14 03:26:42 +00:00
|
|
|
uri?: string,
|
2017-02-16 23:01:56 +00:00
|
|
|
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>;
|