Skip to content

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.

From the repo root:

Terminal window
bun run app:storybook

For web:

Terminal window
bun run app:storybook:web
Terminal window
bun run app:check

This 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.

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:

Terminal window
CRUMBS_METRO_WORKER=rust bun run app:storybook
CRUMBS_METRO_WORKER=rust bun run playground

Restart 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.

Terminal window
bun scripts/expo-app-workers.ts playground rust /absolute/fresh-output
bun scripts/expo-app-workers.ts storybook babel /absolute/other-fresh-output

The 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.

  • .css.ts modules 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

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.