index.js → src/providers/root.
Source: examples/expo · README.md
What it demonstrates
useInjectanduseStoragein React Native- Memory-backed storage (no local persist)
- Custom React Native error renderer via component injection
Run
From the repository root, build libraries first:examples/expo:
EXPO_NO_METRO_WORKSPACE_ROOT=1.
Or use the root shortcut:
expo ~57 in package.json). If you see an SDK mismatch:
- Stop every Metro process (
Ctrl+C, orlsof -i :8081). - Run
npm startagain fromexamples/expo. - In Expo Go, remove the old project from Recently opened and scan the new QR code.
The Expo dev server is not run in CI. Validate locally with
npx expo start.Layout
Related docs
- Component injection: Expo error renderer pattern
- React hooks
- Storage React hooks