import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent' import type { ViewProps, ColorValue } from 'react-native' import type { Float, WithDefault, BubblingEventHandler, Int32, } from 'react-native/Libraries/Types/CodegenTypes' type Headers = ReadonlyArray> type Priority = WithDefault<'low' | 'normal' | 'high', 'normal'> type CacheControl = WithDefault<'immutable' | 'web' | 'cacheOnly', 'web'> type Transition = WithDefault<'fade' | 'none', 'none'> type FastImageSource = Readonly<{ uri?: string headers?: Headers priority?: Priority cache?: CacheControl }> type OnErrorEvent = Readonly<{ error: string }> type OnLoadEvent = Readonly<{ width: Float height: Float }> type OnProgressEvent = Readonly<{ loaded: Int32 total: Int32 }> interface NativeProps extends ViewProps { onFastImageError?: BubblingEventHandler onFastImageLoad?: BubblingEventHandler onFastImageLoadEnd?: BubblingEventHandler> onFastImageLoadStart?: BubblingEventHandler> onFastImageProgress?: BubblingEventHandler source?: FastImageSource defaultSource?: string | null resizeMode?: WithDefault< 'contain' | 'cover' | 'stretch' | 'center', 'cover' > tintColor?: ColorValue blurRadius?: Int32 transition?: Transition } export default codegenNativeComponent('FastImageView')