Skip to content
NativeScript Unified

NativeScript views

ScrollView

<ScrollView> scrolls its content. orientation is vertical (the default) or horizontal. Give the view a bounded size, or there is nothing to scroll.

One
Two
Three
Four
Five

HTML-first equivalent

A div with overflow-y-auto and a bounded height scrolls the same way. Use overflow-x-auto for the horizontal case:

Row 1

Row 2

Row 3

Row 4

Row 5

Row 6

The native example app wraps page content in <scroll> instead. See Web vs native.