/** * Copyright (c) 2023 Amazon.com, Inc. or its affiliates. All rights reserved. * * PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO LICENSE TERMS. * */ import { AccessibilityProps, ColorValue, ImageRequireSource, ViewProps } from 'react-native'; import { BubblingEventHandler, HostComponent } from 'react-native-tscodegen-types'; export type ResizeMode = 'contain' | 'cover' | 'stretch' | 'center'; export type Priority = 'low' | 'normal' | 'high'; type Cache = 'immutable' | 'web' | 'cacheOnly'; export type Source = { uri?: string; headers?: { [key: string]: string; }; priority?: Priority; cache?: Cache; }; type OnLoadEvent = { width: number; height: number; }; type OnProgressEvent = { loaded: number; total: number; }; interface NativeFastImageViewProps extends AccessibilityProps, ViewProps { source?: Source | ImageRequireSource; defaultSource?: ImageRequireSource; resizeMode?: ResizeMode; tintColor?: ColorValue; onFastImageLoadStart?: BubblingEventHandler; onFastImageProgress?: BubblingEventHandler; onFastImageLoad?: BubblingEventHandler; onFastImageError?: BubblingEventHandler; onFastImageLoadEnd?: BubblingEventHandler; } type ComponentType = HostComponent; declare const _default: ComponentType; export default _default;