We value code contributions, but non-code contributions too, from writers, editors, testers, etc. are always welcomed. Join us to contribute
- To contribute to code, repository
- To contribute to documentation, repository
We want this community to be friendly and respectful to each other. Please follow it in all your interactions with the project.
This project and everyone participating in it is governed by the code of conduct.
This guide will help you to contribute in various aspects like raising issues, feature request, etc.
To get started with the project, run yarn
in the root directory to install the required dependencies for each package:
yarn
While it's possible to use
npm
, the tooling is built aroundyarn
, so you'll have an easier time if you useyarn
for development.
Make sure your code passes TypeScript and ESLint. Run the following to verify:
yarn typescript
yarn lint
To fix formatting errors, run the following:
yarn lint --fix
Remember to add tests for your change if possible. Run the unit tests by:
yarn test
To edit the Objective-C or Swift files, open ios/
in XCode.
To edit the Java or Kotlin files, open android/
in Android studio.
We follow the conventional commits specification for our commit messages:
fix
: bug fixes, e.g. fix crash due to deprecated method.feat
: new features, e.g. add new method to the module.refactor
: code refactor, e.g. migrate from class components to hooks.docs
: changes into documentation, e.g. add usage example for the module..test
: adding or updating tests, e.g. add integration tests using detox.chore
: tooling changes, e.g. change CI config.
Our pre-commit hooks verify that your commit message matches this format when committing.
We use TypeScript for type checking, ESLint with Prettier for linting and formatting the code, and Jest for testing.
Our pre-commit hooks verify that the linter and tests pass when committing.
The package.json
file contains various scripts for common tasks:
yarn bootstrap
: setup project by installing all dependencies and pods.yarn typescript
: type-check files with TypeScript.yarn lint
: lint files with ESLint.yarn test
: run unit tests with Jest.
Working on your first pull request? You can learn how from this free series: How to Contribute to an Open Source Project on GitHub.
Before submitting your pull request make sure the following requirements are fulfilled:
- Fork the repository
- Create a branch from
develop
- Prefer small pull requests focused on one change
- Check linting and format it
- Change necessary code for bug fix, a new feature
- Follow the pull request template when opening a pull request
- For pull requests that change the API or implementation, discuss with maintainers first by opening an issue.
Before submitting an issue, you need to make sure:
- Kindly provide an adequate description and a clear title
- If possible, share a URL towards the repository in which action is failing