Screen
The root of every screen file. It sets the title, whether the content scrolls and whether it stays inside the safe area.
Use it for: One per screen, always at the top. A Screen cannot sit inside another component.
- CategoryLayout
- ChildrenAny number
- DataNone
- ActionNone
| Prop | Required | Accepts | What it does |
|---|---|---|---|
title |
No | text, up to 200 characters | Shown in the navigation bar. |
safeArea |
No | true or false |
Keep content clear of the notch and home indicator. Default true. |
scroll |
No | true or false |
Let the content scroll. Default true. |
Every component also accepts id (required, unique on its screen), and the optional preset and style described in Style options.
Example
Section titled “Example”{ "id": "home-root", "type": "Screen", "props": { "title": "Home", "safeArea": true, "scroll": true }, "preset": "page", "children": [ { "id": "welcome", "type": "Text", "props": { "text": "Welcome" } } ]}