SwipeUI

Settings core

The schema, values, search, adapter and row parts every Settings screen shares.

The schema, adapter, values, search and row parts every Settings screen shares.

Free (MIT)Version 1.0.0Released 24 Nov 2026iOS and Android

When to use it

  • Building your own settings screen from the same schema, values and rows as the Settings kit.
  • Reusing the row helpers: settingsThemeRow, settingsTextSizeRow and settingsTimeRangeRow.

When not to use it

  • A single switch or list on another screen. Use Switch, List Row and List Section directly.

Installation

Run this from your app's root. If SwipeUI isn't set up yet, run npx @swipeui/cli init first; it sets up Uniwind, the theme tokens and the cn helper.

npx @swipeui/cli add settings-core
  • Adds components/swipeui/settings/settings-core.tsx, components/swipeui/settings/settings-parts.tsx, components/swipeui/settings/settings-sample.tsx and 33 shared helpers.
  • Installs react-native-svg, uniwind, clsx, tailwind-merge, react-native-reanimated, react-native-worklets, expo-haptics, class-variance-authority, react-native-gesture-handler, react-native-safe-area-context, @expo/ui, @gorhom/bottom-sheet, expo-blur. In Expo apps it uses npx expo install so versions match your SDK.

It installs with every Settings screen, so you rarely add it yourself. Use it to build your own settings screens from the same parts.

What's inside

  • Types: SettingsData, SettingsSection, SettingsRow and its six row types, and SettingsAdapter.
  • SettingsProvider shares the schema, the adapter and one set of values with every screen below it.
  • Logic: defaultSettingsValues, isSettingsRowDisabled (master switches through dependsOn), searchSettings and highlightParts.
  • Parts: SettingsRowView draws any row; SettingsIconTile draws the 18 built-in icons; SettingsBackButton.
  • Row helpers: settingsThemeRow, settingsTextSizeRow and settingsTimeRangeRow.
  • Sample: SAMPLE_SETTINGS_DATA, a notes app's settings, and createMockSettingsAdapter.
components/privacy-settings.tsx
import { SettingsRowView } from '@/components/swipeui/settings/settings-parts';
import { isSettingsRowDisabled, useSettingsValues } from '@/components/swipeui/settings/settings-core';

const store = useSettingsValues(data);
{row && <SettingsRowView row={row} values={store.values} set={store.set} disabled={isSettingsRowDisabled(data, row, store.values)} haptics />}

Behavior and gestures

  • Rows follow their type: switches toggle, list choices open a page, segmented choices pick in place, destructive rows run through the adapter.

Accessibility

  • Switches and choices are named by their row title; dimmed rows report disabled.
  • Icon tiles are decoration and hidden from screen readers.

Motion

  • Uses the toggle and select motion roles, so it follows your app's feel. Pass motion to tune this one instance.
  • Rows use the controls' own motion roles; Reduce Motion follows them.

Performance

  • Search and dependency checks are plain functions over the schema; the schema is small enough to scan per keystroke.

Notes for AI

  • One SettingsData object drives every screen: sections and rows on the main screen, pages for sub-pages, account for the account screen.
  • Row ids are the keys in values; dependsOn makes a master switch.
  • Wrap the flow in SettingsProvider so every screen shares values and the adapter.

Compatibility

Runs onSupported
Expo SDK 57Yes
Expo SDK 58Yes
React Native CLI (with Expo modules)Yes
Expo GoYes
iOSYes
AndroidYes

This table describes API support and static bundle checks. Native runtime, device accessibility and bare Uniwind compatibility remain pending.

Related items

On this page