Thank you for your interest in contributing! This guide will help you get started.
# Clone the repo
git clone https://github.com/ThinkGrid-Labs/react-native-starter-auth.git
cd react-native-starter-auth
# Install dependencies (also installs lefthook git hooks)
yarn install
# Run the example app
cd example
yarn install
yarn ios
# or
yarn androidThis project uses Conventional Commits.
Commits are linted automatically via lefthook + commitlint.
| Type | When to use |
|---|---|
feat: |
New feature |
fix: |
Bug fix |
docs: |
Documentation only |
test: |
Adding or updating tests |
chore: |
Maintenance, tooling, dependencies |
refactor: |
Code change that is neither a fix nor a feature |
perf: |
Performance improvement |
Breaking changes — add ! after the type or add a BREAKING CHANGE: footer:
feat!: remove deprecated login callback API
yarn lint # ESLint
yarn lint:fix # ESLint with auto-fix
yarn format # Prettier format
yarn format:check # Prettier check (CI)
yarn type-check # TypeScript check
yarn test # Jest
yarn validate # All of the above- Fork the repo and create a branch from
main - Write tests for your changes
- Make sure
yarn validatepasses - Open a PR — the CI will run automatically
Releases are automated via release-it on push to main.
The GitHub Actions release workflow handles versioning, changelog, git tags, and npm publish.
To do a manual release locally:
yarn releaseThis requires NPM_TOKEN and GITHUB_TOKEN set in your environment.