react-native-ios-utilities
Version:
Utilities for react-native + iOS and wrappers for using swift together with fabric/paper + JSI
24 lines (18 loc) • 546 B
text/typescript
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
};