Skip to content

SettingsScreen

SettingsScreen is a ready-to-use multi-section settings screen. It demonstrates how to compose SettingsLayout with multiple SettingsGroup organisms, wiring toggle rows to local state.

  • Renders SettingsLayout with a title and back handler
  • Contains four SettingsGroup sections: Account, Notifications, Privacy, Danger Zone
  • Switch rows are wired to useState
  • Chevron rows log navigation targets (wire to your router)
  • Destructive “Delete Account” button at the bottom
src/screens/SettingsScreen.tsx

Copy SettingsScreen into your project and replace the console.log navigation handlers with your router calls.

import { SettingsScreen } from '@/screens/SettingsScreen';
export default function Settings() {
return (
<SettingsScreen onBack={() => navigation.goBack()} />
);
}
PropTypeDescription
onBack() => voidCalled when the back button is pressed
GroupRows
AccountProfile (chevron), Change Password (chevron)
NotificationsPush alerts (switch), Email digest (switch)
PrivacyShare analytics (switch)
Danger ZoneDelete Account (destructive button)

SettingsScreenSettingsLayout (template) → SettingsGroup × 4 (organism) → SettingsRow (molecule) → Switch / Text (atoms)