1/** 2 * Copyright (c) Meta Platforms, Inc. and affiliates. 3 * 4 * This source code is licensed under the MIT license found in the 5 * LICENSE file in the root directory of this source tree. 6 * 7 * @flow strict-local 8 * @format 9 */ 10 11import type {ResolvedAssetSource} from './AssetSourceResolver'; 12import type {ImageProps} from './ImageProps'; 13import type {ViewProps} from '../Components/View/ViewPropTypes'; 14import {ConditionallyIgnoredEventHandlers} from '../NativeComponent/ViewConfigIgnore'; 15import type { 16 HostComponent, 17 PartialViewConfig, 18} from '../Renderer/shims/ReactNativeTypes'; 19import type { 20 ColorValue, 21 DangerouslyImpreciseStyle, 22 ImageStyleProp, 23} from '../StyleSheet/StyleSheet'; 24import Platform from '../Utilities/Platform'; 25 26type Props = $ReadOnly<{ 27 ...ImageProps, 28 ...ViewProps, 29 30 style?: ImageStyleProp | DangerouslyImpreciseStyle, 31 32 // iOS native props 33 tintColor?: ColorValue, 34 35 // Android native props 36 shouldNotifyLoadEvents?: boolean, 37 src?: 38 | ?ResolvedAssetSource 39 | ?$ReadOnlyArray<?$ReadOnly<{uri?: ?string, ...}>>, 40 headers?: ?{[string]: string}, 41 defaultSrc?: ?string, 42 loadingIndicatorSrc?: ?string, 43}>; 44 45declare export default HostComponent<Props>; 46