Skip to main content

IMGElementStateError

export
interface IMGElementStateError {
  alt?: string;
  altColor?: string;
  containerStyle: ViewStyle;
  dimensions: ImageDimensions;
  error: Error;
  source: ImageURISource;
  type: "error";
}

State when the image could not be loaded.

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

error#

required
error: Error;

source#

required
source: ImageURISource;

The source to paint.

type#

required
type: "error";