Skip to content

About

A pure JavaScript/TypeScript React Native package template with a minimal buildable library, an Expo example app, and a documentation site.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

native-library

A pure JavaScript/TypeScript React Native package template with a minimal buildable library, an Expo example app, and a documentation site.

Structure

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

Installation

pnpm add native-library

Usage

import { sum } from 'native-library';

const result = sum(2, 3); // 5

Scripts

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

Contributing

About

A pure JavaScript/TypeScript React Native package template with a minimal buildable library, an Expo example app, and a documentation site.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages