Skip to main content

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​

MemberTypeDetails
styleOmit<ImageProps["style"], "width" | "height" | "aspectRatio" | "contentFit">Optional. —
widthImageDimensionOptional. —
heightImageDimensionOptional. —
fit"cover" | "contain" | "fill" | "inside" | "outside"Optional. —
containerStyleStyleProp<ViewStyle>Optional. —
aspectRationumberOptional. —
uristring—
fallbackImageProps["source"]Optional. Image shown after the bounded expo-image retry policy is exhausted.
maxRetriesnumberOptional. Number of retries attempted by expo-image before the fallback is shown.

Source​

View the declaration in the SDK source.