Skip to main content

IMGElementStateBase

export
interface IMGElementStateBase {
  alt?: string;
  altColor?: string;
  containerStyle: ViewStyle;
  dimensions: ImageDimensions;
  source: ImageURISource;
}

Base fields for all ​IMGElementState.

Fields#

alt#

optional
alt?: string;

Alt text extract from alt attribute.

altColor#

optional
altColor?: string;

Alt color, defaults to color for this ​TNode.

containerStyle#

required
containerStyle: ViewStyle;

Styles of the container.

dimensions#

required
dimensions: ImageDimensions;

Physical dimensions of the image

source#

required
source: ImageURISource;

The source to paint.