Skip to content
NativeScript Unified

NativeScript views

ListView and Repeater

Both take items as a comma-separated string or an array, and show each item as text.

ListView

Each row is a button. The itemTap output emits the row index. On a device a ListView scrolls its rows, so give it a height.

Repeater

<Repeater> stacks the items vertically and has no tap behaviour.

One
Two
Three

These fallbacks render items as plain text. Custom item templates are not implemented.

HTML-first equivalent

Loop over your data with @for and write the row markup yourself, which also gives you the item templates the polyfill lacks:

  • Apples
  • Bananas
  • Cherries