UNPKG

react-native-ios-utilities

Version:
24 lines (18 loc) 546 B
import type { ImageItemConfig } from "./ImageItemConfig"; export type ImageLoadingConfig = { shouldCache?: boolean; shouldLazyLoad?: boolean; }; export type ImageRemoteUrlConfig = { url: string; fallbackImage?: ImageItemConfig; }; export type ImageRemoteURLFallbackBehavior = | 'afterFinalAttempt' | 'whileNotLoaded' | 'onLoadError'; export type ImageRemoteURLLoadingConfig = ImageLoadingConfig & { maxRetryAttempts?: number; shouldImmediatelyRetryLoading?: boolean; fallbackBehavior?: ImageRemoteURLFallbackBehavior };