

GIT PULL REQUEST CODE
Maintainers will do their best to provide constructive, actionable feedback to help get your changes ready to be merged into the core React Native repository.A big part of contributing to open source is submitting changes to a project: improvements to source code or tests, updates to docs content, even typos or broken links. Keep an eye on any comments and review feedback left on your pull request on GitHub. Did you consider any edge cases? Which steps did you follow to make sure your changes have the desired effect? See What is a Test Plan? to learn more. Test Plan: Let reviewers know how you tested your changes.Changelog: Help release maintainers write release notes by providing a short description of what will be changed should the pull request get merged.Summary: Use this field to provide your motivation for sending this pull request.Then, make sure to fill out all of the fields provided by the default pull request template: Use a descriptive title that is not too long. You are almost there! The next step is to fill out the pull request. Visit the provided URL to proceed to the next step. Make sure to add your changes to version control using git:

You can also use git status and git diff on the command line to keep track of what has changed. Many popular editors integrate with source control in some way. To learn more about coding conventions, refer to the Coding Style guide. You can check the status of your code styling by running yarn run lint. We also use a linter to catch styling issues that may exist in your code. This saves you time and energy as you can let Prettier fix up any formatting issues automatically through its editor integrations, or by manually running yarn run prettier. Developers should not need to worry about minor nits, so whenever possible, we use tools that automate the process of rewriting your code to follow conventions.įor example, we use Prettier to format our JavaScript code. We understand it can take a while to ramp up and get a sense of the style followed for each of the languages in use in the core React Native repository. You can learn more in Running and Writing Tests. Make sure your changes are correct and do not introduce any test failures.
GIT PULL REQUEST ANDROID
If you're mostly making changes to iOS or Android, using Xcode or Android Studio might provide a nicer integrated experience. Visual Studio Code is popular with JavaScript developers. You can now make any changes deemed necessary using your code editor of choice. Open a shell and type the following commands:Ĭhapter II: Implementing your Changes 1. Next, you will grab a copy of the source code for your local machine. You will now have a fork of React Native on GitHub at.
GIT PULL REQUEST LICENSE
In order to accept your pull request, we need you to submit a Contributor License Agreement (CLA).

These are covered as part of the Environment Setup guide under the "Building Projects with Native Code" section. You will need a few tools and dependencies in order to build and develop for React Native. These instructions provide the step-by-step process to set up your machine to make contributions to the core React Native repository, and create your first pull request.
