9.0 Released! → Native ESM runtimes 🚀, Vite support ⚡️, multi-window apps and more...
Read Announcement

<HtmlView> is a UI component for rendering simple static HTML content.

TIP

For additional features and improved performance, consider using an alternative implementation like the @nativescript-community/ui-label from the community.

See also: WebView.

Props

html

ts
html: string

The HTML content to be shown.

selectable

ts
selectable: boolean

Gets or sets a value indicating whether HtmlView content is selectable.

...Inherited

For additional inherited properties, refer to the API Reference.

Native component

Previous
DatePicker
Next
Image