mirror of
https://github.com/status-im/react-native.git
synced 2025-01-18 05:23:26 +00:00
d904361477
Reviewed By: yungsters Differential Revision: D7270059 fbshipit-source-id: 3b9727363aeb6910fbbdc613a70d9e8cac97b3b1
26 lines
610 B
JavaScript
26 lines
610 B
JavaScript
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
* @format
|
|
*/
|
|
'use strict';
|
|
|
|
// This is to sync with ImageSourcePropTypes.js.
|
|
type ImageURISource = $ReadOnly<{|
|
|
uri?: ?string,
|
|
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>;
|