Use Storybook and Expo Dev Client
The repo includes an Expo Storybook app in apps/storybook/. It is useful for:
- visual checks of themed components
- verifying Metro transform behavior
- smoke testing Expo Dev Client support
Both internal apps use Expo 58.0.14 / React Native 0.88 / React 19.3.1. SDK 58 needs Node ^22.13.0 || ^24.3.0 || ^26.0.0 || >=27.0.0. The matched Storybook stack uses Reanimated 4.7.1, Worklets 0.13.0, Gesture Handler 3.3.0 and safe-area-context 5.10.1. Independent installed profiles retain SDK 56/57; the library keeps its SDK 56 development peers.
Start Storybook
Section titled “Start Storybook”From the repo root:
bun run app:storybookFor web:
bun run app:storybook:webCheck types and platform exports
Section titled “Check types and platform exports”bun run app:checkThis checks Storybook types, exports its LiteUI browser on iOS, Android and web,
and rejects compiler dependencies in the runtime bundles. Run bun run app:dev
to inspect the showcase app without the Storybook browser. The supported LiteUI
includes Controls and Actions; the animated FullUI is not qualified.
After an SDK upgrade, regenerate local native projects and rebuild custom development
clients before using them. An existing ios/ or android/ folder is not upgraded
by changing JavaScript dependencies. Expo Go checks do not qualify a custom build.
Select the SDK 58 worker
Section titled “Select the SDK 58 worker”For your own app, follow the consumer Rust setup. The commands below apply to this repository’s internal apps.
Babel is the default. To use Expo’s genuine optional Rust worker:
CRUMBS_METRO_WORKER=rust bun run app:storybookCRUMBS_METRO_WORKER=rust bun run playgroundRestart Metro after changing the worker or Babel configuration. Use separate caches when comparing modes. The internal app config validates this environment value and enables Expo’s experimental noxcturnalTransformWorker; it is not a library-wide environment switch.
Both apps use presets: [require("expo/internal/babel-preset")]. Expo supplies required Worklets transforms. Storybook retains a narrow Flow parser override for react-native-modal-datetime-picker; custom configuration and Worklets/codegen files can legitimately use Babel even in Rust mode. Keep required transforms intact. A successful flag-on export does not prove Rust execution: the qualification script requires real eligible-file completions and expected fallback routes.
bun scripts/expo-app-workers.ts playground rust /absolute/fresh-outputbun scripts/expo-app-workers.ts storybook babel /absolute/other-fresh-outputThe M1.10b native packet records both apps under both workers on an owned iOS 26.5 simulator and Android 16 emulator. Physical devices, spoken readers and release FPS remain separate. Rust interoperability makes no compiler-speed claim.
What to check
Section titled “What to check”.css.tsmodules compile without Metro errors- themed components resolve correctly with
ThemeProvider - recipes and state variants behave as expected
- strict diagnostics still fail in known unsupported cases
When to use this instead of unit tests
Section titled “When to use this instead of unit tests”Use Storybook when the question is visual or integration-oriented. Use package tests when the question is type contract, transform behavior, or runtime invariants.
app:check clears the Metro export cache and requires LiteUI, Controls and Actions in each platform’s source maps, preventing a cached showcase entry from passing the Storybook check.