Examples
Settings Pro
A settings screen built from data: sections of links (with their value), switches and actions, the account on top, and a destructive action at the end. In the native look it's an inset grouped list on iOS and full-width rows in Material; in Patine's look it's the same on every platform.
import { SettingsScreen } from '@patine-ui/pro';
Loading…
<SettingsScreen account={SETTINGS_ACCOUNT} sections={SETTINGS_SECTIONS} />
Make it yours
| Prop | Type | Default |
|---|---|---|
sections | { title?, footer?, items }[]: items are link, toggle or action | Required |
account | { name, email, avatar?, onPress? } | None |
title | string | 'Settings' |
onBack | () => void | No back button |
SettingsList is the same list without the screen around it, for a settings section inside another screen.
Built from the free Header, List and ListItem, Switch and Avatar.
In real apps
Every complete app has its own version of this screen, wired to its auth, data and settings: see the templates.
Related
- Profile PRO
- Sign in PRO
- All blocks