Skip to main content

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​

PropTypeDefault
sections{ title?, footer?, items }[]: items are link, toggle or actionRequired
account{ name, email, avatar?, onPress? }None
titlestring'Settings'
onBack() => voidNo 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.