NativeScript views
Image
<Image> renders an <img>. It takes src and alt, and the image is capped at the width of its container.
<Image src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAABQCAIAAAARP+ljAAAAlklEQVR42u3RMQ0AAAgEsXeDLGb8G8AEE2lyCq6paT0uFgAWYAEWYAEWYAEGLMACLMACLMACDFiABViABViABViAAQuwAAuwAAuwAAMWYAEWYAEWYAEGLMACLMACLMACLMCABViABViABViAAQuwAAuwAAuwAAN2AbAAC7AAC7AACzBgARZgARZgARZgwAIswAIswLpqAXHIsLPftyiDAAAAAElFTkSuQmCC" alt="Teal placeholder" class="rounded-lg"></Image>Nothing is rendered when src is empty. On a device, a data: URI must be base64 (data:image/png;base64,...), and Android does not decode SVG.
HTML-first equivalent
Use <img> with src and alt. Add max-w-full if you want the same width cap the polyfill applies.