Skip to content
NativeScript Unified

NativeScript views

Image

<Image> renders an <img>. It takes src and alt, and the image is capped at the width of its container.

Teal placeholderTeal placeholder

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.