OptimizedImageProps
No behavioral description is attached to this declaration. The public signature, parameter and return types, and source location below document its published contract.
Kind: Interface
Package: @ovok/native
Import
import { OptimizedImageProps } from '@ovok/native/image';
TypeScript shape
interface OptimizedImageProps extends Omit<ImageProps, "source" | "style"> {
style?: Omit<ImageProps["style"], "width" | "height" | "aspectRatio" | "contentFit">;
width?: ImageDimension;
height?: ImageDimension;
fit?: "cover" | "contain" | "fill" | "inside" | "outside";
containerStyle?: StyleProp<ViewStyle>;
aspectRatio?: number;
uri: string;
fallback?: ImageProps["source"];
maxRetries?: number;
}
This is a type-level export; it has no call parameters.
Public members
| Member | Type | Details |
|---|---|---|
style | Omit<ImageProps["style"], "width" | "height" | "aspectRatio" | "contentFit"> | Optional. — |
width | ImageDimension | Optional. — |
height | ImageDimension | Optional. — |
fit | "cover" | "contain" | "fill" | "inside" | "outside" | Optional. — |
containerStyle | StyleProp<ViewStyle> | Optional. — |
aspectRatio | number | Optional. — |
uri | string | — |
fallback | ImageProps["source"] | Optional. Image shown after the bounded expo-image retry policy is exhausted. |
maxRetries | number | Optional. Number of retries attempted by expo-image before the fallback is shown. |