docs/public/1.0/contributing.html
We want this community to be friendly and respectful to each other. Please read the full text so that you can understand what actions will and will not be tolerated.
The core team works directly on GitHub and all work is public.
Working on your first pull request? You can learn how from this free series: How to Contribute to an Open Source Project on GitHub.
master (a guide on how to fork a repository).yarn bootstrap to setup the developement environment.We prefix our commit messages with one of the following to signify the kind of change:
fix: bug fixes, e.g. fix Button color on DarkTheme.feat: new features, e.g. add Snackbar component.refactor: code/structure refactor, e.g. new structure folder for components.docs: changes into documentation, e.g. add usage example for Button.test: adding or updating tests, eg unit, snapshot testing.chore: tooling changes, e.g. change circle ci config.BREAKING: for changes that break existing usage, e.g. change API of a component.Our pre-commit hooks verify that your commit message matches this format when committing.
We use flow 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 commiting. You can also run the following commands manually:
yarn flow: run flow on all files.yarn lint: run eslint and prettier.yarn test: run tests.When you're sending a pull request:
flow, eslint and tests are passing.When you're working on a component:
type Props to aid with documentation.The example app uses Expo. You will need to install the Expo app for Android and iOS to start developing.
After you're done, you can run yarn start in the example/ folder and scan the QR code to launch it on your device.
The documentation is automatically generated from the flowtype annotations in the components. You can add comments above the type annotations to add descriptions. To preview the generated documentation, run yarn start in the docs/ folder.
You can report issues on our bug tracker. Please follow the issue template when opening an issue.
By contributing to React Native Paper, you agree that your contributions will be licensed under its MIT license.