IMGElementProps
interface IMGElementProps {  alt?: string;  altColor?: string;  cachedNaturalDimensions?: ImageDimensions;  computeMaxWidth?: (contentWidth: number) => number;  containerProps?: Omit<ViewProps, "style">;  contentWidth?: number;  enableExperimentalPercentWidth?: boolean;  height?: string | number;  initialDimensions?: ImageDimensions;  objectFit?: ObjectFit;  onPress?: null | (event: GestureResponderEvent) => void;  source: ImageURISource;  style?: StyleProp<ImageStyle>;  testID?: string;  width?: string | number;}Props for the ​IMGElement component.
Fields#
alt#
alt?: string;Alt text extract from alt attribute.
altColor#
altColor?: string;Alt color, defaults to color for this ​TNode.
cachedNaturalDimensions#
When the natural ("physical") dimensions for this image are accessible a priori, these should be passed. It will save some API calls and filesytem access via React Native Image.getSize.
computeMaxWidth#
computeMaxWidth?: (contentWidth: number) => number;When provided, the print image will have a max width depending on the
contentWidth prop.
containerProps#
containerProps?: Omit<ViewProps, "style">;contentWidth#
contentWidth?: number;The contentWidth from the ​RenderHTMLProps.
enableExperimentalPercentWidth#
enableExperimentalPercentWidth?: boolean;Allow experimental percent width for the print dimensions computation.
The percent will be relative to contentWidth
height#
height?: string | number;The value of the height attribute.
initialDimensions#
Rendered dimensions prior to retrieving natural dimensions of the image.
objectFit#
objectFit?: ObjectFit;The value of the object-fit CSS property.
onPress#
onPress?: null | (event: GestureResponderEvent) => void;A callback triggered on press.
source#
source: ImageURISource;The source to paint.
style#
style?: StyleProp<ImageStyle>;The style for this image.
testID#
testID?: string;width#
width?: string | number;The value of the width attribute.