mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 09:12:02 +00:00
274e7ba592
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
29 lines
733 B
JavaScript
29 lines
733 B
JavaScript
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*
|
|
* @providesModule ImageSource
|
|
* @flow
|
|
*/
|
|
'use strict';
|
|
|
|
// This is to sync with ImageSourcePropTypes.js.
|
|
|
|
type ImageURISource = {
|
|
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>;
|