This repo uses npm workspaces. Install dependencies once at the repository root and run the library and example app from the same dependency graph.
npm installThe example app consumes the local package via file:.., and the root postinstall builds the library output so Metro resolves a normal package instead of a generated mirror.
-
Install once from the repo root:
npm install
-
Start the example app from the workspace:
npm run start --workspace example-app
-
Make changes in the root library files.
-
Rebuild the library after source changes:
npm run build:safe
For an active development loop, run:
npm run build:watch
-
Re-run validation as needed:
npm run type-check npm run build npm run type-check:example npm run doctor:example
npm run build- Build the library for productionnpm run build:safe- Build the library without minificationnpm run build:watch- Rebuild the library continuously while editingnpm run type-check- Run library TypeScript checksnpm run type-check:example- Run example-app TypeScript checksnpm run doctor:example- Run Expo Doctor for the example appnpm run format- Format code with Prettiernpm run format:check- Check code formatting