◉RORK LABJP
●ARCHIVE — Since 11/22 you can archive a Rork project instead of deleting it, and bring it back from Archived●PLAY FIX — Fixed: Expo apps built for Google Play losing their Rork AI key, which broke AI features●SONNET 4.5 — Sonnet 4.5 retires from the Claude API on 11/30, 7 days left. Check which model your app calls●SPLASH — Expo users report apps stuck on the splash screen after rolling back to an earlier update●NEW — New: Three clues to check before replying to a "stuck on the splash screen" review●2.5 ROUTE — From 12/1, Gemini 2.5 requests reroute to newer models at new rates. 8 days left●ARCHIVE — Since 11/22 you can archive a Rork project instead of deleting it, and bring it back from Archived●PLAY FIX — Fixed: Expo apps built for Google Play losing their Rork AI key, which broke AI features●SONNET 4.5 — Sonnet 4.5 retires from the Claude API on 11/30, 7 days left. Check which model your app calls●SPLASH — Expo users report apps stuck on the splash screen after rolling back to an earlier update●NEW — New: Three clues to check before replying to a "stuck on the splash screen" review●2.5 ROUTE — From 12/1, Gemini 2.5 requests reroute to newer models at new rates. 8 days left
Articles/Dev Tools
⬡ Dev Tools/2026-06-28Advanced

Build Your Settings Screen From One Schema and Reuse It Across Apps

Hand-building a settings screen per app falls apart as your app count grows. Here is a schema-driven design that assembles the screen from declarative data and shares a common base across multiple apps, with working code.

Rork621Expo237architecture12settingsindie developer53

✦ Premium Article

A settings screen causes no trouble while you run a single app. You add a toggle, add a row, write it straight into the screen, and it works. The pain starts when a second and third similar app appear. As an indie developer at Dolice, I run several small wallpaper and calm-down apps in parallel, and at some point I realized I was copying the same setting rows into separate screens over and over. Theme switch, notifications on/off, clear cache — rows that exist in every app, each carried as a separate implementation, one per app.

When rows live directly inside screens, every change becomes "number of apps × number of edit sites." Changing a single word in the notification setting means opening six places. That is less a workload problem than a structural one: it is a structure that breeds omissions.

This article separates the settings screen into data (a schema) and rendering (a renderer), and shares the data across apps. It is written to drop straight into an Expo app generated by Rork.

What to peel off the screen

Break down what a settings screen is responsible for and you get roughly four things.

ResponsibilityExampleWhere it belongs
Item definitionA "Dark mode" toggle existsSchema (shared)
Value storagePersist true/false on the deviceStore (shared)
AppearanceDrawing rows, switches, dividersRenderer (shared)
Specific behaviorAn "Unlock Pro" row only this app hasPer-app difference

The first three are nearly identical in every app. Only the fourth differs. So if you share the three shareable parts ruthlessly and let the fourth be added as a small "difference," operations get dramatically lighter.

Define the schema with types

Start by deciding the type that represents a setting item. This is the backbone of the design. Responsibility is concentrated in this type, not in the screen.

// settings/schema.ts
export type SettingKind = "toggle" | "select" | "action" | "link";
 
export type SettingItem = {
  key: string;            // persistence key; never collide across apps
  kind: SettingKind;
  titleKey: string;       // i18n key; hold no raw strings
  // default for toggle / select
  defaultValue?: boolean | string;
  // options for select
  options?: { value: string; labelKey: string }[];
  // what action / link does
  onPress?: () => void | Promise<void>;
  // visibility condition; the whole row disappears if unmet
  visible?: (ctx: SettingsContext) => boolean;
};
 
export type SettingSection = {
  titleKey: string;
  items: SettingItem[];
};
 
export type SettingsContext = {
  isPro: boolean;
  platform: "ios" | "android";
};

Three things matter. Keep titleKey as an i18n key rather than a raw string. Make visible a function so conditions like "show only for Pro members" can be written declaratively. And give the item no behavior beyond onPress. The schema only says "what exists"; it never holds "how to draw."

✦

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
✦Collapse setting definitions into one declarative schema and let the UI generate itself
✦Where to draw the line between a shared base and per-app differences
✦Pushing persistence, validation, and ordering into the schema layer
Secure payment via Stripe · Cancel anytime
✦

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

Related Articles

⬡ Dev Tools2026-05-23
Auditing Privacy Manifests for Rork-Generated Expo Apps — A One-Day Pre-Submission Workflow for Indie Developers
A pre-submission workflow for indie developers shipping Rork-generated Expo apps: enumerate every dependency, tell ITMS-91053 apart from ITMS-91061, and catch the Pods that npm names never show you — hermes included.
⬡ Dev Tools2026-11-19
New Wallpapers Showed Up Everywhere Except the Filters: Ship the Count and the Category Lists Together
I added 67 wallpapers in one batch. They appeared in the full list and in New, but not under a single category filter, because I had raised the ID limit and forgotten to ship the category lists. Here is a pre-bump check, a client-side way to spot silent fallbacks in an Expo app, and a post-release count against the origin.
⬡ Dev Tools2026-10-30
It runs in development but the iOS Release build dies on launch — checking whether a missing scheme is the cause
In an expo-router app, an app.json with no scheme can crash only the iOS Release build at launch. Why Debug and Android survive, the two ways to fix it, how to think about leaving the scheme out on purpose, and a pre-submission check.