ReadyNative

No state library

The "No state library" option of the ReadyNative Expo template: built-in useSyncExternalStore stores only.

Expo Go: yes

Runs in Expo Go; no dev build needed for this module.

Only the built-in stores remain - src/stores/create-store.ts, a tiny useSyncExternalStore helper that backs theme mode and onboarding. I'd keep this while local useState and those two stores are enough; there's no extra dependency and nothing to learn. With --with-examples, /examples/store shows the core "Module not installed" screen.

Setup

bun run setup --state none

That's it - there's nothing to configure.

Usage

createPersistedStore in src/stores/create-store.ts is the pattern to copy if you need one more shared value: it persists through @/lib/storage and exposes a useStore() hook plus useHydrated().

Gotchas

  • Reach for a library once you have derived state, selectors or many small stores: bun run setup --state zustand (stores and selectors) or --state jotai (atoms). Both bring a persistence bridge and an example route.

Reference

Everything below is generated from modules/state/none/module.json - the same file bun run setup reads, so it is what actually lands in your repo.

Install

bun run setup --state none

Module id: state/none.

On this page

Get ReadyNative