A pure JavaScript/TypeScript React Native package template with a minimal buildable library, an Expo example app, and a documentation site.
native-library/
├── src/
│ ├── index.ts # public API barrel
│ ├── sum.ts # sample function
│ └── __tests__/sum.test.ts # unit test
├── example/ # Expo demo app
├── docs/ # fumadocs documentation site
├── feature.md # feature list
└── .github/ # CI and issue templates
pnpm add native-libraryimport { sum } from 'native-library';
const result = sum(2, 3); // 5| Command | Description |
|---|---|
pnpm install |
Install all workspace dependencies |
pnpm dev:example |
Start the Expo example app |
pnpm dev:docs |
Start the documentation site |
pnpm build |
Build the library |
pnpm lint |
Lint the project |
pnpm typecheck |
Typecheck the library |
pnpm typecheck:all |
Typecheck library and docs |
pnpm test |
Run unit tests |
pnpm release |
Publish a new release |