GuidesModules

Settings lists

Build grouped settings screens with the SettingList components

  • Stable unknown
  • Release candidate since 1.16.1-rc.3
  • Development since 1.16.1-dev.2111+9796905

Use SettingList to render grouped settings rows with section headers and custom items. The SDK handles the list presentation; the app owns setting values, updates, permissions, and persistence.

import { SettingList } from "@ovok/native/setting";

<SettingList
  data={[
    "Account",
    { title: "Language", onPress: openLanguageSettings },
    { title: "Notifications", onPress: openNotifications },
  ]}
/>

Wire each row to a real action and reflect the saved value after the update succeeds. For asynchronous changes, show progress and failure feedback in the screen. Use a custom item when the setting needs a control such as a switch; do not make the row look interactive if it has no action.

References

API reference

Every export of @ovok/native/setting, with signatures, props and types, is in the setting API reference.

Last updated on

On this page