Scroll
A bounded viewport containing one scrollable subtree.
Props
| Prop | Type | Required |
|---|---|---|
accessibilityHint | string | No |
axis | string | No |
enabled | boolean | No |
follow | string | No |
indicators | boolean | No |
label | string | No |
page | nonnegativeInteger | No |
pageExtent | string | No |
paging | boolean | No |
semantics | string | No |
Types describe evaluated values. Literal native attributes use the declared decoder; use bind-* for expressions. any still has the semantic constraints listed below. Common document attributes (class, state, show, etc.) are separate from props.
Example
<Scroll class="h-40"><Column><Text text="Scrollable content" /></Column></Scroll>
Defaults, values, and validation
axis defaults to vertical; horizontal is also supported. Paging requires horizontal axis. pageExtent accepts content/viewport; follow accepts none/end and end requires vertical scrolling. page requires paging. scrollTo addresses a documented local scroll command.
Unknown props, wrong types, missing required props, and unsupported child structure fail validation. Use attributes for evaluated input and diagnostics for recovery.
Events
on-pageChange, on-scroll
scroll carries {offset, content, viewport, atEnd} in logical units. pageChange carries zero-based {index, count}.
Local commands
scrollTo
Use call refs.feed.scrollTo with {edge: 'end'} or {x: 0, y: 120}. Coordinates are finite, nonnegative, at most 1,000,000 logical units. The edge accepts start/end; unknown fields are errors. The actual scroll range clamps the target.