UNPKG

1.94 kBMarkdownView Raw
1# Contributing Guide
2
3Contributions are welcome and are greatly appreciated! Every little bit helps, and credit will
4always be given.
5
6
7## Setting up your environment
8
9After forking to your own github org, do the following steps to get started:
10
11```bash
12# clone your fork to your local machine
13git clone https://github.com/airbnb/lottie-react-native.git
14
15# step into local repo
16cd lottie-react-native
17
18# install dependencies
19npm install
20
21# run packager for development
22npm run run:packager
23```
24
25### Developing on Android
26
27### Developing on iOS
28
29### Style & Linting
30
31This codebase adheres to the [Airbnb Styleguide](https://github.com/airbnb/javascript) and is
32enforced using [ESLint](http://eslint.org/).
33
34It is recommended that you install an eslint plugin for your editor of choice when working on this
35codebase, however you can always check to see if the source code is compliant by running:
36
37```bash
38npm run lint
39```
40
41
42### Building Docs
43
44Building the docs locally is extremely simple. First execute the following command:
45
46```bash
47npm run docs:watch
48```
49
50After this, you can open up your browser to the specified port (usually http://localhost:4000 )
51
52The browser will automatically refresh when there are changes to any of the source files.
53
54
55## Pull Request Guidelines
56
57Before you submit a pull request from your forked repo, check that it meets these guidelines:
58
591. If the pull request adds functionality, the docs should be updated as part of the same PR.
601. If the pull request adds functionality, code in the example app that demonstrates the new functionality should be updated as part of the same PR.
611. If the pull request adds functionality, the PR description should include motivation and use cases for the feature.
621. If the pull request fixes a bug, an explanation including what the bug was, and how to reproduce it should be included in the PR description.
631. Please rebase and resolve all conflicts before submitting.