Thanks for taking the time to checkout this project and being willing to contribute!
Here are some of some of ways you can help:
- Reporting Bugs
- Suggesting a Feature
- Responding to Issues
- Improving the Documentation
- Implementing Bug Fixes and Improvements
React Native Elements has over 9000 users actively developing and using this library in their projects. With that many use cases, bugs are sure to come up from time to time. When you think you've found a bug, here's what to do:
Check your version. A fix may have already been released in new a newer version. Update your version of react-native-elements to the latest.
Search the existing issues and pull requests. If you see one, add a 👍 reaction (please no +1 comments). Read through the comments and see if you can provide anymore valuable information to the thread. The more use cases we have, the easier it is to solve the issue.
If there are no other issues like yours, then create a new one. New issues come with a issue template, so make sure to fill out as much information as possible. If possible, please also provide a snack demonstrating the issue.
If this is your first open source contribution, please take a look at this guide.
Have a cool idea for a component? Think you can implement an existing feature better? Go ahead and open and issue, describe what you want to accomplish and lastly, why you think React Native Elements would benefit from it.
A few things to consider/add:
- As clearly as possible, attach screenshots, concepts of how this feature should behave
- Do you have any thoughts on how to implement this feature? Have you done something similar already?
- Hold off on submitting feature pull requests until the feature has been discussed. Once the feature has been established and agreed upon, create the pull request.
When someone posts an issue, a maintainer might not be able to respond right away. Or a person may post and issue that has incomplete information. As a contributor you can help by answering the issue yourself if you know the cause of it, or help the maintainers by making sure all the information necessary to validate the issue is there.
Our documentation is built with an open-source tool called Docusaurus. It has a ton of great features, the most important being versioning - which allows us to have documentation for every version we release.
The easiest way to contribute to a particular doc is through the Edit button on the page. It'll take you directly to the exact file for that page on the repo.
Since all documents are versioned, it might be bit tricky to find which file needs changing. You can use the rule below to figure out which file you need to edit.
- Changes for an existing doc on a version not yet released
- Adding documentation for a new component
- Rewording, adding missed info, or making a typo for a released version
- Editing an existing page that's not docs or components
- Editing a document that appears the same in all versions
These files are located in the
/docs folder. So if I wanted to add a new prop
on the Avatar component, I'll need to document that in
You'll be creating your
.md file in the
/docs folder. Be sure to fill out
the header at the top of the file:
Lastly you'll need to add it to sidebar. This sidebar file is
/website/sidebars.json. Then add the
id from the document we just created
into one of the sidebars.
These files are located in:
The last directory will differ depending on what version you are submitting docs for.
Docusaurus only creates new versions of files if the
originaldocument in the
/docsfolder has changed since a release was made.
If I added docs for
Avatar.md and it was our ever first release say
when releasing that version it'll create
Now if I go to release
0.20.0 and didn't change
they'll be no
will simply point to the old version from
These files are located in:
This one is particularly the most complicated and requires a bit of duplication.
Let's say we want edit the
Getting Started doc. We want this document to be
the same for all versions. Firstly we'll need to make edits to
/docs/getting_started.md so it's available in future versions. Secondly we'll
need to duplicate those changes in
We'll only need to make this change to the first set of versioned docs. In
Be sure to check out the documentation over at docusaurus.io if you have any other queries.
If you wish to submit a pull request for a new feature or issue then this is guide for you. On GitHub, we extensively use labels to reflect the content and status of issues.
For all issues that are bugs check here.
Improvements are separated into two categories:
Check out the Labels guide for a more descriptive info on our usage of labels.
To begin you should start by forking this repository first. This should get you setup on your local machine:
- Install Node.js if you have not already. (We suggest you to use node v6.x.x)
- Fork the react-native-elements repo here
git clone <your-forked-repo-url> && cd react-native-elements
Now create a new branch with a name that loosely describes
the issue on which you will be working. Once you think you have addressed
the issue in question, submit a pull request to the
We like to provide informative and useful commit messages when pushing changes to the repo. This helps tremendously when sifting through the commit history to find a particular changeset. A useful guide for creating meaningful commit messages can be found here.
There are 3 main branches:
masteris the branch with the most recent deployed version
nextis the main development branch. For new features and enhancements, base the changes off this branch.
patchis a branch for working on patch releases. If you have a bug fix that requires a fast release, use this branch.