# React Native settings screen (Pro)

> A React Native settings screen for iOS, Android and the web, built from data: links, switches and actions in an inset grouped list on iOS and full-width rows in Material, with the account on top.

# 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.

```tsx
import { SettingsScreen } from '@patine-ui/pro';
```

```tsx live device
import { SETTINGS_ACCOUNT, SETTINGS_SECTIONS, SettingsScreen } from '@patine-ui/pro';

export default function Example() {
  return <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](/docs/components/header), [List and ListItem](/docs/components/list), [Switch](/docs/components/switch) and [Avatar](/docs/components/avatar).

## In real apps

Every complete app has its own version of this screen, wired to its auth, data and settings: see the [templates](/templates).

## Related

- [Profile](./profile) PRO
- [Sign in](./sign-in) PRO
- [All blocks](./overview)
