diff --git a/docs/0.10/contributing.html b/docs/0.10/contributing.html index 581f211a0c8..d6c5adabfe0 100644 --- a/docs/0.10/contributing.html +++ b/docs/0.10/contributing.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.10/contributing/index.html b/docs/0.10/contributing/index.html index 581f211a0c8..d6c5adabfe0 100644 --- a/docs/0.10/contributing/index.html +++ b/docs/0.10/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.10/javascript-environment.html b/docs/0.10/javascript-environment.html index 761e4ec0505..89681af0d70 100644 --- a/docs/0.10/javascript-environment.html +++ b/docs/0.10/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.10/javascript-environment/index.html b/docs/0.10/javascript-environment/index.html index 761e4ec0505..89681af0d70 100644 --- a/docs/0.10/javascript-environment/index.html +++ b/docs/0.10/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.10/navigation.html b/docs/0.10/navigation.html index f824ca1acd6..f1ad60f9fe7 100644 --- a/docs/0.10/navigation.html +++ b/docs/0.10/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.10/navigation/index.html b/docs/0.10/navigation/index.html
      index f824ca1acd6..f1ad60f9fe7 100644
      --- a/docs/0.10/navigation/index.html
      +++ b/docs/0.10/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.10/performance.html b/docs/0.10/performance.html
      index ca20a8e60ab..4f8328e688c 100644
      --- a/docs/0.10/performance.html
      +++ b/docs/0.10/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.10/performance/index.html b/docs/0.10/performance/index.html index ca20a8e60ab..4f8328e688c 100644 --- a/docs/0.10/performance/index.html +++ b/docs/0.10/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.10/state.html b/docs/0.10/state.html index 0af5d9f17ee..961eecf71de 100644 --- a/docs/0.10/state.html +++ b/docs/0.10/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.11/contributing/index.html b/docs/0.11/contributing/index.html index 817572f4d1b..233e5676c68 100644 --- a/docs/0.11/contributing/index.html +++ b/docs/0.11/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.11/javascript-environment.html b/docs/0.11/javascript-environment.html index 585cc439232..72d5bd92f8d 100644 --- a/docs/0.11/javascript-environment.html +++ b/docs/0.11/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.11/javascript-environment/index.html b/docs/0.11/javascript-environment/index.html index 585cc439232..72d5bd92f8d 100644 --- a/docs/0.11/javascript-environment/index.html +++ b/docs/0.11/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.11/navigation.html b/docs/0.11/navigation.html index 06a9e320bb3..15bce78333c 100644 --- a/docs/0.11/navigation.html +++ b/docs/0.11/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.11/navigation/index.html b/docs/0.11/navigation/index.html
      index 06a9e320bb3..15bce78333c 100644
      --- a/docs/0.11/navigation/index.html
      +++ b/docs/0.11/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.11/performance.html b/docs/0.11/performance.html
      index e8f06e945d8..e13f4439326 100644
      --- a/docs/0.11/performance.html
      +++ b/docs/0.11/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.11/performance/index.html b/docs/0.11/performance/index.html index e8f06e945d8..e13f4439326 100644 --- a/docs/0.11/performance/index.html +++ b/docs/0.11/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.11/state.html b/docs/0.11/state.html index aebd2529fb1..7fc46fcafe9 100644 --- a/docs/0.11/state.html +++ b/docs/0.11/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.12/contributing/index.html b/docs/0.12/contributing/index.html index 671731d02ce..4aab2e05211 100644 --- a/docs/0.12/contributing/index.html +++ b/docs/0.12/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.12/javascript-environment.html b/docs/0.12/javascript-environment.html index 75f01f14c06..b1c83cdbbd8 100644 --- a/docs/0.12/javascript-environment.html +++ b/docs/0.12/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.12/javascript-environment/index.html b/docs/0.12/javascript-environment/index.html index 75f01f14c06..b1c83cdbbd8 100644 --- a/docs/0.12/javascript-environment/index.html +++ b/docs/0.12/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.12/navigation.html b/docs/0.12/navigation.html index 0542127de9a..4982c71437e 100644 --- a/docs/0.12/navigation.html +++ b/docs/0.12/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.12/navigation/index.html b/docs/0.12/navigation/index.html
      index 0542127de9a..4982c71437e 100644
      --- a/docs/0.12/navigation/index.html
      +++ b/docs/0.12/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.12/performance.html b/docs/0.12/performance.html
      index 924cc30caa3..521fc87d0ce 100644
      --- a/docs/0.12/performance.html
      +++ b/docs/0.12/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.12/performance/index.html b/docs/0.12/performance/index.html index 924cc30caa3..521fc87d0ce 100644 --- a/docs/0.12/performance/index.html +++ b/docs/0.12/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.12/state.html b/docs/0.12/state.html index 2307c78f409..c030256a9f9 100644 --- a/docs/0.12/state.html +++ b/docs/0.12/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.13/contributing/index.html b/docs/0.13/contributing/index.html index 3adced64f8d..8185d61c76f 100644 --- a/docs/0.13/contributing/index.html +++ b/docs/0.13/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.13/javascript-environment.html b/docs/0.13/javascript-environment.html index 876d3c07d74..d05b23b0ae4 100644 --- a/docs/0.13/javascript-environment.html +++ b/docs/0.13/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.13/javascript-environment/index.html b/docs/0.13/javascript-environment/index.html index 876d3c07d74..d05b23b0ae4 100644 --- a/docs/0.13/javascript-environment/index.html +++ b/docs/0.13/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.13/navigation.html b/docs/0.13/navigation.html index 6a41387a06e..9962efdffff 100644 --- a/docs/0.13/navigation.html +++ b/docs/0.13/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.13/navigation/index.html b/docs/0.13/navigation/index.html
      index 6a41387a06e..9962efdffff 100644
      --- a/docs/0.13/navigation/index.html
      +++ b/docs/0.13/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.13/performance.html b/docs/0.13/performance.html
      index 4a11abdc8b6..91af5236b32 100644
      --- a/docs/0.13/performance.html
      +++ b/docs/0.13/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.13/performance/index.html b/docs/0.13/performance/index.html index 4a11abdc8b6..91af5236b32 100644 --- a/docs/0.13/performance/index.html +++ b/docs/0.13/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.13/state.html b/docs/0.13/state.html index 6c7d123230d..5f8ba6d05d3 100644 --- a/docs/0.13/state.html +++ b/docs/0.13/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.14/contributing/index.html b/docs/0.14/contributing/index.html index f2812eb8a3c..9ef0bc9d503 100644 --- a/docs/0.14/contributing/index.html +++ b/docs/0.14/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.14/javascript-environment.html b/docs/0.14/javascript-environment.html index a08a82f97dc..68c2cb5a0d6 100644 --- a/docs/0.14/javascript-environment.html +++ b/docs/0.14/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.14/javascript-environment/index.html b/docs/0.14/javascript-environment/index.html index a08a82f97dc..68c2cb5a0d6 100644 --- a/docs/0.14/javascript-environment/index.html +++ b/docs/0.14/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.14/navigation.html b/docs/0.14/navigation.html index 51809ffa22d..1585152ec2c 100644 --- a/docs/0.14/navigation.html +++ b/docs/0.14/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.14/navigation/index.html b/docs/0.14/navigation/index.html
      index 51809ffa22d..1585152ec2c 100644
      --- a/docs/0.14/navigation/index.html
      +++ b/docs/0.14/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.14/performance.html b/docs/0.14/performance.html
      index ea1663627e2..7b8aa872f85 100644
      --- a/docs/0.14/performance.html
      +++ b/docs/0.14/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.14/performance/index.html b/docs/0.14/performance/index.html index ea1663627e2..7b8aa872f85 100644 --- a/docs/0.14/performance/index.html +++ b/docs/0.14/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.14/state.html b/docs/0.14/state.html index 4e94a90d053..3a73790f3c4 100644 --- a/docs/0.14/state.html +++ b/docs/0.14/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.15/contributing/index.html b/docs/0.15/contributing/index.html index 94edc7b6034..b010e656545 100644 --- a/docs/0.15/contributing/index.html +++ b/docs/0.15/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.15/javascript-environment.html b/docs/0.15/javascript-environment.html index 3e422efed21..baa67265674 100644 --- a/docs/0.15/javascript-environment.html +++ b/docs/0.15/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.15/javascript-environment/index.html b/docs/0.15/javascript-environment/index.html index 3e422efed21..baa67265674 100644 --- a/docs/0.15/javascript-environment/index.html +++ b/docs/0.15/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.15/navigation.html b/docs/0.15/navigation.html index d307fe0d07c..78b0d2c5c6b 100644 --- a/docs/0.15/navigation.html +++ b/docs/0.15/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.15/navigation/index.html b/docs/0.15/navigation/index.html
      index d307fe0d07c..78b0d2c5c6b 100644
      --- a/docs/0.15/navigation/index.html
      +++ b/docs/0.15/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.15/performance.html b/docs/0.15/performance.html
      index 8a3cb2650c3..81245bf3b3f 100644
      --- a/docs/0.15/performance.html
      +++ b/docs/0.15/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.15/performance/index.html b/docs/0.15/performance/index.html index 8a3cb2650c3..81245bf3b3f 100644 --- a/docs/0.15/performance/index.html +++ b/docs/0.15/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.15/state.html b/docs/0.15/state.html index ac1b0f04278..86f2bb85d56 100644 --- a/docs/0.15/state.html +++ b/docs/0.15/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.16/contributing/index.html b/docs/0.16/contributing/index.html index 76b4b1801b6..d5e7b1b548b 100644 --- a/docs/0.16/contributing/index.html +++ b/docs/0.16/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.16/javascript-environment.html b/docs/0.16/javascript-environment.html index 73ab1e8fd2a..2df4bdf0bbd 100644 --- a/docs/0.16/javascript-environment.html +++ b/docs/0.16/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.16/javascript-environment/index.html b/docs/0.16/javascript-environment/index.html index 73ab1e8fd2a..2df4bdf0bbd 100644 --- a/docs/0.16/javascript-environment/index.html +++ b/docs/0.16/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.16/navigation.html b/docs/0.16/navigation.html index 3e5a6f56a7d..afb9a7ebbc7 100644 --- a/docs/0.16/navigation.html +++ b/docs/0.16/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.16/navigation/index.html b/docs/0.16/navigation/index.html
      index 3e5a6f56a7d..afb9a7ebbc7 100644
      --- a/docs/0.16/navigation/index.html
      +++ b/docs/0.16/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.16/performance.html b/docs/0.16/performance.html
      index c9b34858f29..78a577bfb72 100644
      --- a/docs/0.16/performance.html
      +++ b/docs/0.16/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.16/performance/index.html b/docs/0.16/performance/index.html index c9b34858f29..78a577bfb72 100644 --- a/docs/0.16/performance/index.html +++ b/docs/0.16/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.16/state.html b/docs/0.16/state.html index f52970620a0..1046a807870 100644 --- a/docs/0.16/state.html +++ b/docs/0.16/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.17/contributing/index.html b/docs/0.17/contributing/index.html index ef037cd598b..e2c54ab5888 100644 --- a/docs/0.17/contributing/index.html +++ b/docs/0.17/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.17/javascript-environment.html b/docs/0.17/javascript-environment.html index 7665d272660..f9d084622b3 100644 --- a/docs/0.17/javascript-environment.html +++ b/docs/0.17/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.17/javascript-environment/index.html b/docs/0.17/javascript-environment/index.html index 7665d272660..f9d084622b3 100644 --- a/docs/0.17/javascript-environment/index.html +++ b/docs/0.17/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.17/navigation.html b/docs/0.17/navigation.html index 29295008b46..030c60edfc0 100644 --- a/docs/0.17/navigation.html +++ b/docs/0.17/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.17/navigation/index.html b/docs/0.17/navigation/index.html
      index 29295008b46..030c60edfc0 100644
      --- a/docs/0.17/navigation/index.html
      +++ b/docs/0.17/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.17/performance.html b/docs/0.17/performance.html
      index e949c2a49e6..7f5d795b259 100644
      --- a/docs/0.17/performance.html
      +++ b/docs/0.17/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.17/performance/index.html b/docs/0.17/performance/index.html index e949c2a49e6..7f5d795b259 100644 --- a/docs/0.17/performance/index.html +++ b/docs/0.17/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.17/state.html b/docs/0.17/state.html index 042dd6b745a..69a7e26d37a 100644 --- a/docs/0.17/state.html +++ b/docs/0.17/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.18/contributing/index.html b/docs/0.18/contributing/index.html index 5ad9beb25c9..477bb57d6d7 100644 --- a/docs/0.18/contributing/index.html +++ b/docs/0.18/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.18/javascript-environment.html b/docs/0.18/javascript-environment.html index 1151ad6334e..4a8cef3a7f7 100644 --- a/docs/0.18/javascript-environment.html +++ b/docs/0.18/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.18/javascript-environment/index.html b/docs/0.18/javascript-environment/index.html index 1151ad6334e..4a8cef3a7f7 100644 --- a/docs/0.18/javascript-environment/index.html +++ b/docs/0.18/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.18/navigation.html b/docs/0.18/navigation.html index f2cc79bd740..3435b21709b 100644 --- a/docs/0.18/navigation.html +++ b/docs/0.18/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.18/navigation/index.html b/docs/0.18/navigation/index.html
      index f2cc79bd740..3435b21709b 100644
      --- a/docs/0.18/navigation/index.html
      +++ b/docs/0.18/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.18/performance.html b/docs/0.18/performance.html
      index 9716b19104a..9f8683e2249 100644
      --- a/docs/0.18/performance.html
      +++ b/docs/0.18/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.18/performance/index.html b/docs/0.18/performance/index.html index 9716b19104a..9f8683e2249 100644 --- a/docs/0.18/performance/index.html +++ b/docs/0.18/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.18/state.html b/docs/0.18/state.html index 9b2740f621c..c4257e0c33c 100644 --- a/docs/0.18/state.html +++ b/docs/0.18/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.19/contributing/index.html b/docs/0.19/contributing/index.html index a5431f54d78..b91ae8fe4e8 100644 --- a/docs/0.19/contributing/index.html +++ b/docs/0.19/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.19/javascript-environment.html b/docs/0.19/javascript-environment.html index 12bf3f6e669..b0d52fe6586 100644 --- a/docs/0.19/javascript-environment.html +++ b/docs/0.19/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.19/javascript-environment/index.html b/docs/0.19/javascript-environment/index.html index 12bf3f6e669..b0d52fe6586 100644 --- a/docs/0.19/javascript-environment/index.html +++ b/docs/0.19/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.19/navigation.html b/docs/0.19/navigation.html index 8f51a1bf35c..a6a176eb613 100644 --- a/docs/0.19/navigation.html +++ b/docs/0.19/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.19/navigation/index.html b/docs/0.19/navigation/index.html
      index 8f51a1bf35c..a6a176eb613 100644
      --- a/docs/0.19/navigation/index.html
      +++ b/docs/0.19/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.19/performance.html b/docs/0.19/performance.html
      index 08312de1ff5..54d353a5a61 100644
      --- a/docs/0.19/performance.html
      +++ b/docs/0.19/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.19/performance/index.html b/docs/0.19/performance/index.html index 08312de1ff5..54d353a5a61 100644 --- a/docs/0.19/performance/index.html +++ b/docs/0.19/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.19/state.html b/docs/0.19/state.html index aa7f7d49855..f34ad7d0be4 100644 --- a/docs/0.19/state.html +++ b/docs/0.19/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.20/contributing/index.html b/docs/0.20/contributing/index.html index 713ab23df74..7f08127be06 100644 --- a/docs/0.20/contributing/index.html +++ b/docs/0.20/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.20/javascript-environment.html b/docs/0.20/javascript-environment.html index 5e7a392b149..8b41485b869 100644 --- a/docs/0.20/javascript-environment.html +++ b/docs/0.20/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.20/javascript-environment/index.html b/docs/0.20/javascript-environment/index.html index 5e7a392b149..8b41485b869 100644 --- a/docs/0.20/javascript-environment/index.html +++ b/docs/0.20/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.20/navigation.html b/docs/0.20/navigation.html index 7831f2d26b5..02f076e1252 100644 --- a/docs/0.20/navigation.html +++ b/docs/0.20/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.20/navigation/index.html b/docs/0.20/navigation/index.html
      index 7831f2d26b5..02f076e1252 100644
      --- a/docs/0.20/navigation/index.html
      +++ b/docs/0.20/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.20/performance.html b/docs/0.20/performance.html
      index dad03097687..c7f747a43f7 100644
      --- a/docs/0.20/performance.html
      +++ b/docs/0.20/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.20/performance/index.html b/docs/0.20/performance/index.html index dad03097687..c7f747a43f7 100644 --- a/docs/0.20/performance/index.html +++ b/docs/0.20/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.20/state.html b/docs/0.20/state.html index 0e3d48b5d8c..56cd7846644 100644 --- a/docs/0.20/state.html +++ b/docs/0.20/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.21/contributing/index.html b/docs/0.21/contributing/index.html index 6fc6dc0045f..93777bd3a37 100644 --- a/docs/0.21/contributing/index.html +++ b/docs/0.21/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.21/javascript-environment.html b/docs/0.21/javascript-environment.html index 35cb2b4e5f6..bab38757910 100644 --- a/docs/0.21/javascript-environment.html +++ b/docs/0.21/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.21/javascript-environment/index.html b/docs/0.21/javascript-environment/index.html index 35cb2b4e5f6..bab38757910 100644 --- a/docs/0.21/javascript-environment/index.html +++ b/docs/0.21/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.21/navigation.html b/docs/0.21/navigation.html index 4cb2c01a3aa..64ef83c0ed5 100644 --- a/docs/0.21/navigation.html +++ b/docs/0.21/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.21/navigation/index.html b/docs/0.21/navigation/index.html
      index 4cb2c01a3aa..64ef83c0ed5 100644
      --- a/docs/0.21/navigation/index.html
      +++ b/docs/0.21/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.21/performance.html b/docs/0.21/performance.html
      index 85680951ea5..d99ddece245 100644
      --- a/docs/0.21/performance.html
      +++ b/docs/0.21/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.21/performance/index.html b/docs/0.21/performance/index.html index 85680951ea5..d99ddece245 100644 --- a/docs/0.21/performance/index.html +++ b/docs/0.21/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.21/state.html b/docs/0.21/state.html index 988815cfc0a..ee7535ef4ba 100644 --- a/docs/0.21/state.html +++ b/docs/0.21/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.22/contributing/index.html b/docs/0.22/contributing/index.html index 0c39921db21..0c87159fab1 100644 --- a/docs/0.22/contributing/index.html +++ b/docs/0.22/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.22/javascript-environment.html b/docs/0.22/javascript-environment.html index d081aa2eaae..e243a9b11a4 100644 --- a/docs/0.22/javascript-environment.html +++ b/docs/0.22/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.22/javascript-environment/index.html b/docs/0.22/javascript-environment/index.html index d081aa2eaae..e243a9b11a4 100644 --- a/docs/0.22/javascript-environment/index.html +++ b/docs/0.22/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.22/navigation.html b/docs/0.22/navigation.html index b7e6034b27d..3b4fe70639d 100644 --- a/docs/0.22/navigation.html +++ b/docs/0.22/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.22/navigation/index.html b/docs/0.22/navigation/index.html
      index b7e6034b27d..3b4fe70639d 100644
      --- a/docs/0.22/navigation/index.html
      +++ b/docs/0.22/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.22/performance.html b/docs/0.22/performance.html
      index 6bba2ad7b85..9f83229554c 100644
      --- a/docs/0.22/performance.html
      +++ b/docs/0.22/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.22/performance/index.html b/docs/0.22/performance/index.html index 6bba2ad7b85..9f83229554c 100644 --- a/docs/0.22/performance/index.html +++ b/docs/0.22/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.22/state.html b/docs/0.22/state.html index 789485084d3..65aab5436e8 100644 --- a/docs/0.22/state.html +++ b/docs/0.22/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.23/contributing/index.html b/docs/0.23/contributing/index.html index 634b5486901..be84e65e81d 100644 --- a/docs/0.23/contributing/index.html +++ b/docs/0.23/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.23/javascript-environment.html b/docs/0.23/javascript-environment.html index 42cc30d52d4..efbeae9035c 100644 --- a/docs/0.23/javascript-environment.html +++ b/docs/0.23/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.23/javascript-environment/index.html b/docs/0.23/javascript-environment/index.html index 42cc30d52d4..efbeae9035c 100644 --- a/docs/0.23/javascript-environment/index.html +++ b/docs/0.23/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.23/navigation.html b/docs/0.23/navigation.html index 5e1789637fb..8a0f1199d68 100644 --- a/docs/0.23/navigation.html +++ b/docs/0.23/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.23/navigation/index.html b/docs/0.23/navigation/index.html
      index 5e1789637fb..8a0f1199d68 100644
      --- a/docs/0.23/navigation/index.html
      +++ b/docs/0.23/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.23/performance.html b/docs/0.23/performance.html
      index b0108421ef1..a93db9102be 100644
      --- a/docs/0.23/performance.html
      +++ b/docs/0.23/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.23/performance/index.html b/docs/0.23/performance/index.html index b0108421ef1..a93db9102be 100644 --- a/docs/0.23/performance/index.html +++ b/docs/0.23/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.23/state.html b/docs/0.23/state.html index cb0fa98aa38..80f67f6f8c9 100644 --- a/docs/0.23/state.html +++ b/docs/0.23/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.24/contributing/index.html b/docs/0.24/contributing/index.html index 9532aa8df82..789bb1a0fbf 100644 --- a/docs/0.24/contributing/index.html +++ b/docs/0.24/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.24/javascript-environment.html b/docs/0.24/javascript-environment.html index 991442554dd..9b92da90d02 100644 --- a/docs/0.24/javascript-environment.html +++ b/docs/0.24/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.24/javascript-environment/index.html b/docs/0.24/javascript-environment/index.html index 991442554dd..9b92da90d02 100644 --- a/docs/0.24/javascript-environment/index.html +++ b/docs/0.24/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.24/navigation.html b/docs/0.24/navigation.html index b27ff14546f..34d794a344c 100644 --- a/docs/0.24/navigation.html +++ b/docs/0.24/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.24/navigation/index.html b/docs/0.24/navigation/index.html
      index b27ff14546f..34d794a344c 100644
      --- a/docs/0.24/navigation/index.html
      +++ b/docs/0.24/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.24/performance.html b/docs/0.24/performance.html
      index 76bafa16543..f70f9ea1e9a 100644
      --- a/docs/0.24/performance.html
      +++ b/docs/0.24/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.24/performance/index.html b/docs/0.24/performance/index.html index 76bafa16543..f70f9ea1e9a 100644 --- a/docs/0.24/performance/index.html +++ b/docs/0.24/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.24/state.html b/docs/0.24/state.html index c56cb1dc388..a6a7d73c7fd 100644 --- a/docs/0.24/state.html +++ b/docs/0.24/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.25/contributing/index.html b/docs/0.25/contributing/index.html index 2e7f44f7917..f9a726ea3bd 100644 --- a/docs/0.25/contributing/index.html +++ b/docs/0.25/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.25/javascript-environment.html b/docs/0.25/javascript-environment.html index 7f74c1a27e2..6522d65d6a6 100644 --- a/docs/0.25/javascript-environment.html +++ b/docs/0.25/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.25/javascript-environment/index.html b/docs/0.25/javascript-environment/index.html index 7f74c1a27e2..6522d65d6a6 100644 --- a/docs/0.25/javascript-environment/index.html +++ b/docs/0.25/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.25/navigation.html b/docs/0.25/navigation.html index fae90b745be..ea92d73cd8f 100644 --- a/docs/0.25/navigation.html +++ b/docs/0.25/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.25/navigation/index.html b/docs/0.25/navigation/index.html
      index fae90b745be..ea92d73cd8f 100644
      --- a/docs/0.25/navigation/index.html
      +++ b/docs/0.25/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.25/performance.html b/docs/0.25/performance.html
      index 28b45bbc128..ba4f9915dd2 100644
      --- a/docs/0.25/performance.html
      +++ b/docs/0.25/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.25/performance/index.html b/docs/0.25/performance/index.html index 28b45bbc128..ba4f9915dd2 100644 --- a/docs/0.25/performance/index.html +++ b/docs/0.25/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.25/state.html b/docs/0.25/state.html index 69e26346054..6a5e000a1c6 100644 --- a/docs/0.25/state.html +++ b/docs/0.25/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.26/contributing/index.html b/docs/0.26/contributing/index.html index d1dd47b2b3b..de16ef00d81 100644 --- a/docs/0.26/contributing/index.html +++ b/docs/0.26/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.26/javascript-environment.html b/docs/0.26/javascript-environment.html index 923a310415b..258226537ea 100644 --- a/docs/0.26/javascript-environment.html +++ b/docs/0.26/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.26/javascript-environment/index.html b/docs/0.26/javascript-environment/index.html index 923a310415b..258226537ea 100644 --- a/docs/0.26/javascript-environment/index.html +++ b/docs/0.26/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.26/navigation.html b/docs/0.26/navigation.html index 2e344caa1d9..059203ed1a3 100644 --- a/docs/0.26/navigation.html +++ b/docs/0.26/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.26/navigation/index.html b/docs/0.26/navigation/index.html
      index 2e344caa1d9..059203ed1a3 100644
      --- a/docs/0.26/navigation/index.html
      +++ b/docs/0.26/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.26/performance.html b/docs/0.26/performance.html
      index 762d3699658..eb82354ff29 100644
      --- a/docs/0.26/performance.html
      +++ b/docs/0.26/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.26/performance/index.html b/docs/0.26/performance/index.html index 762d3699658..eb82354ff29 100644 --- a/docs/0.26/performance/index.html +++ b/docs/0.26/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.26/state.html b/docs/0.26/state.html index 91dd4af59d1..8f9d38b7293 100644 --- a/docs/0.26/state.html +++ b/docs/0.26/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.27/contributing/index.html b/docs/0.27/contributing/index.html index acb5f787f6f..36b38a057ca 100644 --- a/docs/0.27/contributing/index.html +++ b/docs/0.27/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.27/javascript-environment.html b/docs/0.27/javascript-environment.html index e9630623126..aac089a31be 100644 --- a/docs/0.27/javascript-environment.html +++ b/docs/0.27/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.27/javascript-environment/index.html b/docs/0.27/javascript-environment/index.html index e9630623126..aac089a31be 100644 --- a/docs/0.27/javascript-environment/index.html +++ b/docs/0.27/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.27/navigation.html b/docs/0.27/navigation.html index 1ac9df768bd..3070062ac5a 100644 --- a/docs/0.27/navigation.html +++ b/docs/0.27/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.27/navigation/index.html b/docs/0.27/navigation/index.html
      index 1ac9df768bd..3070062ac5a 100644
      --- a/docs/0.27/navigation/index.html
      +++ b/docs/0.27/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.27/performance.html b/docs/0.27/performance.html
      index b7d62daf64f..bdc93bdd904 100644
      --- a/docs/0.27/performance.html
      +++ b/docs/0.27/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.27/performance/index.html b/docs/0.27/performance/index.html index b7d62daf64f..bdc93bdd904 100644 --- a/docs/0.27/performance/index.html +++ b/docs/0.27/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.27/state.html b/docs/0.27/state.html index 0df8ce9a3eb..db8b5a2ec39 100644 --- a/docs/0.27/state.html +++ b/docs/0.27/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.28/contributing/index.html b/docs/0.28/contributing/index.html index 0fe1fcad2e2..d272aedaf7a 100644 --- a/docs/0.28/contributing/index.html +++ b/docs/0.28/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.28/javascript-environment.html b/docs/0.28/javascript-environment.html index 69270dfc632..5a920841643 100644 --- a/docs/0.28/javascript-environment.html +++ b/docs/0.28/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.28/javascript-environment/index.html b/docs/0.28/javascript-environment/index.html index 69270dfc632..5a920841643 100644 --- a/docs/0.28/javascript-environment/index.html +++ b/docs/0.28/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.28/navigation.html b/docs/0.28/navigation.html index 7c6608896ea..df344ec9a4c 100644 --- a/docs/0.28/navigation.html +++ b/docs/0.28/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.28/navigation/index.html b/docs/0.28/navigation/index.html
      index 7c6608896ea..df344ec9a4c 100644
      --- a/docs/0.28/navigation/index.html
      +++ b/docs/0.28/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.28/performance.html b/docs/0.28/performance.html
      index 93b48c7d66a..2c00b23ceab 100644
      --- a/docs/0.28/performance.html
      +++ b/docs/0.28/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.28/performance/index.html b/docs/0.28/performance/index.html index 93b48c7d66a..2c00b23ceab 100644 --- a/docs/0.28/performance/index.html +++ b/docs/0.28/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.28/state.html b/docs/0.28/state.html index 038baf723ae..2bde5b177b5 100644 --- a/docs/0.28/state.html +++ b/docs/0.28/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.29/contributing/index.html b/docs/0.29/contributing/index.html index a699130c3be..16cde5b67eb 100644 --- a/docs/0.29/contributing/index.html +++ b/docs/0.29/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.29/javascript-environment.html b/docs/0.29/javascript-environment.html index 615c7829e1a..1822ad73a72 100644 --- a/docs/0.29/javascript-environment.html +++ b/docs/0.29/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.29/javascript-environment/index.html b/docs/0.29/javascript-environment/index.html index 615c7829e1a..1822ad73a72 100644 --- a/docs/0.29/javascript-environment/index.html +++ b/docs/0.29/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.29/navigation.html b/docs/0.29/navigation.html index 8240f5018ec..9ae4e22c436 100644 --- a/docs/0.29/navigation.html +++ b/docs/0.29/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.29/navigation/index.html b/docs/0.29/navigation/index.html
      index 8240f5018ec..9ae4e22c436 100644
      --- a/docs/0.29/navigation/index.html
      +++ b/docs/0.29/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.29/performance.html b/docs/0.29/performance.html
      index 424fafdb26f..473e3605a24 100644
      --- a/docs/0.29/performance.html
      +++ b/docs/0.29/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.29/performance/index.html b/docs/0.29/performance/index.html index 424fafdb26f..473e3605a24 100644 --- a/docs/0.29/performance/index.html +++ b/docs/0.29/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.29/state.html b/docs/0.29/state.html index 57bd7cfbaae..60e9cae2ba5 100644 --- a/docs/0.29/state.html +++ b/docs/0.29/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.30/contributing/index.html b/docs/0.30/contributing/index.html index 72bc5957342..95e590d2745 100644 --- a/docs/0.30/contributing/index.html +++ b/docs/0.30/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.30/javascript-environment.html b/docs/0.30/javascript-environment.html index 61eb46a0ede..c8f1cbd6e2f 100644 --- a/docs/0.30/javascript-environment.html +++ b/docs/0.30/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.30/javascript-environment/index.html b/docs/0.30/javascript-environment/index.html index 61eb46a0ede..c8f1cbd6e2f 100644 --- a/docs/0.30/javascript-environment/index.html +++ b/docs/0.30/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.30/navigation.html b/docs/0.30/navigation.html index 49363d3eee4..893bb6fd454 100644 --- a/docs/0.30/navigation.html +++ b/docs/0.30/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.30/navigation/index.html b/docs/0.30/navigation/index.html
      index 49363d3eee4..893bb6fd454 100644
      --- a/docs/0.30/navigation/index.html
      +++ b/docs/0.30/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.30/performance.html b/docs/0.30/performance.html
      index 2e1d3598849..03a6d8fd7bc 100644
      --- a/docs/0.30/performance.html
      +++ b/docs/0.30/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.30/performance/index.html b/docs/0.30/performance/index.html index 2e1d3598849..03a6d8fd7bc 100644 --- a/docs/0.30/performance/index.html +++ b/docs/0.30/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.30/state.html b/docs/0.30/state.html index e02b97bd0af..5785c6a3650 100644 --- a/docs/0.30/state.html +++ b/docs/0.30/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.31/contributing/index.html b/docs/0.31/contributing/index.html index 81fb052dc80..a5719ed192d 100644 --- a/docs/0.31/contributing/index.html +++ b/docs/0.31/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.31/javascript-environment.html b/docs/0.31/javascript-environment.html index 059e879b562..14d6c84c94c 100644 --- a/docs/0.31/javascript-environment.html +++ b/docs/0.31/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.31/javascript-environment/index.html b/docs/0.31/javascript-environment/index.html index 059e879b562..14d6c84c94c 100644 --- a/docs/0.31/javascript-environment/index.html +++ b/docs/0.31/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.31/navigation.html b/docs/0.31/navigation.html index 0f949afb922..5fa556760b0 100644 --- a/docs/0.31/navigation.html +++ b/docs/0.31/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.31/navigation/index.html b/docs/0.31/navigation/index.html
      index 0f949afb922..5fa556760b0 100644
      --- a/docs/0.31/navigation/index.html
      +++ b/docs/0.31/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.31/performance.html b/docs/0.31/performance.html
      index c22cd63d7ba..748f996e3b3 100644
      --- a/docs/0.31/performance.html
      +++ b/docs/0.31/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.31/performance/index.html b/docs/0.31/performance/index.html index c22cd63d7ba..748f996e3b3 100644 --- a/docs/0.31/performance/index.html +++ b/docs/0.31/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.31/state.html b/docs/0.31/state.html index 480805f815f..5e7ea3aad8b 100644 --- a/docs/0.31/state.html +++ b/docs/0.31/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.32/contributing/index.html b/docs/0.32/contributing/index.html index 26fe6cb5096..cd2ff182493 100644 --- a/docs/0.32/contributing/index.html +++ b/docs/0.32/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.32/javascript-environment.html b/docs/0.32/javascript-environment.html index 8f59de2d556..42c07602967 100644 --- a/docs/0.32/javascript-environment.html +++ b/docs/0.32/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.32/javascript-environment/index.html b/docs/0.32/javascript-environment/index.html index 8f59de2d556..42c07602967 100644 --- a/docs/0.32/javascript-environment/index.html +++ b/docs/0.32/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.32/navigation.html b/docs/0.32/navigation.html index ad998c6fe5b..df54d32b278 100644 --- a/docs/0.32/navigation.html +++ b/docs/0.32/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.32/navigation/index.html b/docs/0.32/navigation/index.html
      index ad998c6fe5b..df54d32b278 100644
      --- a/docs/0.32/navigation/index.html
      +++ b/docs/0.32/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.32/performance.html b/docs/0.32/performance.html
      index 08f377fde5c..4ffec9528f9 100644
      --- a/docs/0.32/performance.html
      +++ b/docs/0.32/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.32/performance/index.html b/docs/0.32/performance/index.html index 08f377fde5c..4ffec9528f9 100644 --- a/docs/0.32/performance/index.html +++ b/docs/0.32/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.32/state.html b/docs/0.32/state.html index 07bb29f98b6..123b036393a 100644 --- a/docs/0.32/state.html +++ b/docs/0.32/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.33/contributing/index.html b/docs/0.33/contributing/index.html index 97067cf32a2..0f43545e75b 100644 --- a/docs/0.33/contributing/index.html +++ b/docs/0.33/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.33/javascript-environment.html b/docs/0.33/javascript-environment.html index a32d5278eb5..1d2883891b8 100644 --- a/docs/0.33/javascript-environment.html +++ b/docs/0.33/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.33/javascript-environment/index.html b/docs/0.33/javascript-environment/index.html index a32d5278eb5..1d2883891b8 100644 --- a/docs/0.33/javascript-environment/index.html +++ b/docs/0.33/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.33/navigation.html b/docs/0.33/navigation.html index d970c735cb3..3a5082db247 100644 --- a/docs/0.33/navigation.html +++ b/docs/0.33/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.33/navigation/index.html b/docs/0.33/navigation/index.html
      index d970c735cb3..3a5082db247 100644
      --- a/docs/0.33/navigation/index.html
      +++ b/docs/0.33/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.33/performance.html b/docs/0.33/performance.html
      index 12b981575f1..4f658eea50f 100644
      --- a/docs/0.33/performance.html
      +++ b/docs/0.33/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.33/performance/index.html b/docs/0.33/performance/index.html index 12b981575f1..4f658eea50f 100644 --- a/docs/0.33/performance/index.html +++ b/docs/0.33/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.33/state.html b/docs/0.33/state.html index 1d1f14811f2..94783c3f099 100644 --- a/docs/0.33/state.html +++ b/docs/0.33/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.34/contributing/index.html b/docs/0.34/contributing/index.html index 996f62ab265..ad5e40e094e 100644 --- a/docs/0.34/contributing/index.html +++ b/docs/0.34/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.34/javascript-environment.html b/docs/0.34/javascript-environment.html index f4dbff814a1..e8e4cd14dff 100644 --- a/docs/0.34/javascript-environment.html +++ b/docs/0.34/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.34/javascript-environment/index.html b/docs/0.34/javascript-environment/index.html index f4dbff814a1..e8e4cd14dff 100644 --- a/docs/0.34/javascript-environment/index.html +++ b/docs/0.34/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.34/navigation.html b/docs/0.34/navigation.html index 08d0ece4d79..6b9809d5f9a 100644 --- a/docs/0.34/navigation.html +++ b/docs/0.34/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.34/navigation/index.html b/docs/0.34/navigation/index.html
      index 08d0ece4d79..6b9809d5f9a 100644
      --- a/docs/0.34/navigation/index.html
      +++ b/docs/0.34/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.34/performance.html b/docs/0.34/performance.html
      index 71c87e63c61..38edf24961c 100644
      --- a/docs/0.34/performance.html
      +++ b/docs/0.34/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.34/performance/index.html b/docs/0.34/performance/index.html index 71c87e63c61..38edf24961c 100644 --- a/docs/0.34/performance/index.html +++ b/docs/0.34/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.34/state.html b/docs/0.34/state.html index d48957cfa37..ef8b157f0e9 100644 --- a/docs/0.34/state.html +++ b/docs/0.34/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.35/contributing/index.html b/docs/0.35/contributing/index.html index ccaddea14e4..211e41f5b3e 100644 --- a/docs/0.35/contributing/index.html +++ b/docs/0.35/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.35/javascript-environment.html b/docs/0.35/javascript-environment.html index 9ad4579fe67..5926d9684cb 100644 --- a/docs/0.35/javascript-environment.html +++ b/docs/0.35/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.35/javascript-environment/index.html b/docs/0.35/javascript-environment/index.html index 9ad4579fe67..5926d9684cb 100644 --- a/docs/0.35/javascript-environment/index.html +++ b/docs/0.35/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.35/navigation.html b/docs/0.35/navigation.html index 741816df905..e3cfc8a112f 100644 --- a/docs/0.35/navigation.html +++ b/docs/0.35/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.35/navigation/index.html b/docs/0.35/navigation/index.html
      index 741816df905..e3cfc8a112f 100644
      --- a/docs/0.35/navigation/index.html
      +++ b/docs/0.35/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.35/performance.html b/docs/0.35/performance.html
      index 2278e73a070..06af3d86ac9 100644
      --- a/docs/0.35/performance.html
      +++ b/docs/0.35/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.35/performance/index.html b/docs/0.35/performance/index.html index 2278e73a070..06af3d86ac9 100644 --- a/docs/0.35/performance/index.html +++ b/docs/0.35/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.35/state.html b/docs/0.35/state.html index 10764e4408b..4f616406276 100644 --- a/docs/0.35/state.html +++ b/docs/0.35/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.36/contributing/index.html b/docs/0.36/contributing/index.html index 60fcc8fa6c6..f1baf868ca2 100644 --- a/docs/0.36/contributing/index.html +++ b/docs/0.36/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.36/javascript-environment.html b/docs/0.36/javascript-environment.html index f642af7ca11..c0751797335 100644 --- a/docs/0.36/javascript-environment.html +++ b/docs/0.36/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.36/javascript-environment/index.html b/docs/0.36/javascript-environment/index.html index f642af7ca11..c0751797335 100644 --- a/docs/0.36/javascript-environment/index.html +++ b/docs/0.36/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.36/navigation.html b/docs/0.36/navigation.html index 3b960918c90..c1ea83f84ca 100644 --- a/docs/0.36/navigation.html +++ b/docs/0.36/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.36/navigation/index.html b/docs/0.36/navigation/index.html
      index 3b960918c90..c1ea83f84ca 100644
      --- a/docs/0.36/navigation/index.html
      +++ b/docs/0.36/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.36/performance.html b/docs/0.36/performance.html
      index c4894615c8b..0b52c681be9 100644
      --- a/docs/0.36/performance.html
      +++ b/docs/0.36/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.36/performance/index.html b/docs/0.36/performance/index.html index c4894615c8b..0b52c681be9 100644 --- a/docs/0.36/performance/index.html +++ b/docs/0.36/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.36/state.html b/docs/0.36/state.html index eb4e3c44245..54782980157 100644 --- a/docs/0.36/state.html +++ b/docs/0.36/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.37/contributing/index.html b/docs/0.37/contributing/index.html index 90ade9950d4..da95de8cfac 100644 --- a/docs/0.37/contributing/index.html +++ b/docs/0.37/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.37/javascript-environment.html b/docs/0.37/javascript-environment.html index 9e1060ce2af..8c98f149f65 100644 --- a/docs/0.37/javascript-environment.html +++ b/docs/0.37/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.37/javascript-environment/index.html b/docs/0.37/javascript-environment/index.html index 9e1060ce2af..8c98f149f65 100644 --- a/docs/0.37/javascript-environment/index.html +++ b/docs/0.37/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.37/navigation.html b/docs/0.37/navigation.html index 857ede8f63b..2e457ea4347 100644 --- a/docs/0.37/navigation.html +++ b/docs/0.37/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.37/navigation/index.html b/docs/0.37/navigation/index.html
      index 857ede8f63b..2e457ea4347 100644
      --- a/docs/0.37/navigation/index.html
      +++ b/docs/0.37/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.37/performance.html b/docs/0.37/performance.html
      index d4691eb0806..bc7a30a4fcb 100644
      --- a/docs/0.37/performance.html
      +++ b/docs/0.37/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.37/performance/index.html b/docs/0.37/performance/index.html index d4691eb0806..bc7a30a4fcb 100644 --- a/docs/0.37/performance/index.html +++ b/docs/0.37/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.37/state.html b/docs/0.37/state.html index 2f0450267c3..a7886e56014 100644 --- a/docs/0.37/state.html +++ b/docs/0.37/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.38/contributing/index.html b/docs/0.38/contributing/index.html index a779a464502..298a041f8e1 100644 --- a/docs/0.38/contributing/index.html +++ b/docs/0.38/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.38/javascript-environment.html b/docs/0.38/javascript-environment.html index be40427f8c6..9a03ae20b8d 100644 --- a/docs/0.38/javascript-environment.html +++ b/docs/0.38/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.38/javascript-environment/index.html b/docs/0.38/javascript-environment/index.html index be40427f8c6..9a03ae20b8d 100644 --- a/docs/0.38/javascript-environment/index.html +++ b/docs/0.38/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.38/navigation.html b/docs/0.38/navigation.html index d57163f1fb7..53cd82c9405 100644 --- a/docs/0.38/navigation.html +++ b/docs/0.38/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.38/navigation/index.html b/docs/0.38/navigation/index.html
      index d57163f1fb7..53cd82c9405 100644
      --- a/docs/0.38/navigation/index.html
      +++ b/docs/0.38/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.38/performance.html b/docs/0.38/performance.html
      index 94c7a1aea04..a22f934b74f 100644
      --- a/docs/0.38/performance.html
      +++ b/docs/0.38/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.38/performance/index.html b/docs/0.38/performance/index.html index 94c7a1aea04..a22f934b74f 100644 --- a/docs/0.38/performance/index.html +++ b/docs/0.38/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.38/state.html b/docs/0.38/state.html index 9571cde5b56..51daf13c347 100644 --- a/docs/0.38/state.html +++ b/docs/0.38/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.39/contributing/index.html b/docs/0.39/contributing/index.html index aa14aecd170..9a2cde7e41f 100644 --- a/docs/0.39/contributing/index.html +++ b/docs/0.39/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.39/javascript-environment.html b/docs/0.39/javascript-environment.html index 929cf185b15..dffd428269f 100644 --- a/docs/0.39/javascript-environment.html +++ b/docs/0.39/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.39/javascript-environment/index.html b/docs/0.39/javascript-environment/index.html index 929cf185b15..dffd428269f 100644 --- a/docs/0.39/javascript-environment/index.html +++ b/docs/0.39/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.39/navigation.html b/docs/0.39/navigation.html index f05e568356b..07a8bbb1d6a 100644 --- a/docs/0.39/navigation.html +++ b/docs/0.39/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.39/navigation/index.html b/docs/0.39/navigation/index.html
      index f05e568356b..07a8bbb1d6a 100644
      --- a/docs/0.39/navigation/index.html
      +++ b/docs/0.39/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.39/performance.html b/docs/0.39/performance.html
      index 132aecd7d75..e47f564011b 100644
      --- a/docs/0.39/performance.html
      +++ b/docs/0.39/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.39/performance/index.html b/docs/0.39/performance/index.html index 132aecd7d75..e47f564011b 100644 --- a/docs/0.39/performance/index.html +++ b/docs/0.39/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.39/state.html b/docs/0.39/state.html index 9f986d1112a..e427594ce14 100644 --- a/docs/0.39/state.html +++ b/docs/0.39/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.40/contributing/index.html b/docs/0.40/contributing/index.html index d241fe66ff1..7973694f168 100644 --- a/docs/0.40/contributing/index.html +++ b/docs/0.40/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.40/javascript-environment.html b/docs/0.40/javascript-environment.html index 761eeebfd0f..a54a43b58c4 100644 --- a/docs/0.40/javascript-environment.html +++ b/docs/0.40/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.40/javascript-environment/index.html b/docs/0.40/javascript-environment/index.html index 761eeebfd0f..a54a43b58c4 100644 --- a/docs/0.40/javascript-environment/index.html +++ b/docs/0.40/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.40/navigation.html b/docs/0.40/navigation.html index 1865f616bb1..51b7f3dda7b 100644 --- a/docs/0.40/navigation.html +++ b/docs/0.40/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.40/navigation/index.html b/docs/0.40/navigation/index.html
      index 1865f616bb1..51b7f3dda7b 100644
      --- a/docs/0.40/navigation/index.html
      +++ b/docs/0.40/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.40/performance.html b/docs/0.40/performance.html
      index 81170fd0ff8..e0de149ca64 100644
      --- a/docs/0.40/performance.html
      +++ b/docs/0.40/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.40/performance/index.html b/docs/0.40/performance/index.html index 81170fd0ff8..e0de149ca64 100644 --- a/docs/0.40/performance/index.html +++ b/docs/0.40/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.40/state.html b/docs/0.40/state.html index e875f96f674..49db75bcc9f 100644 --- a/docs/0.40/state.html +++ b/docs/0.40/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.41/contributing/index.html b/docs/0.41/contributing/index.html index e537c21f2b1..c16e29423d2 100644 --- a/docs/0.41/contributing/index.html +++ b/docs/0.41/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.41/javascript-environment.html b/docs/0.41/javascript-environment.html index dc5901375e4..b67f8ac2d1b 100644 --- a/docs/0.41/javascript-environment.html +++ b/docs/0.41/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.41/javascript-environment/index.html b/docs/0.41/javascript-environment/index.html index dc5901375e4..b67f8ac2d1b 100644 --- a/docs/0.41/javascript-environment/index.html +++ b/docs/0.41/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.41/navigation.html b/docs/0.41/navigation.html index bbaba968ab4..10a843d2906 100644 --- a/docs/0.41/navigation.html +++ b/docs/0.41/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.41/navigation/index.html b/docs/0.41/navigation/index.html
      index bbaba968ab4..10a843d2906 100644
      --- a/docs/0.41/navigation/index.html
      +++ b/docs/0.41/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.41/performance.html b/docs/0.41/performance.html
      index f24d492e290..b2d297e573d 100644
      --- a/docs/0.41/performance.html
      +++ b/docs/0.41/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.41/performance/index.html b/docs/0.41/performance/index.html index f24d492e290..b2d297e573d 100644 --- a/docs/0.41/performance/index.html +++ b/docs/0.41/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.41/state.html b/docs/0.41/state.html index 9e48ade6a84..b368be788de 100644 --- a/docs/0.41/state.html +++ b/docs/0.41/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.42/contributing/index.html b/docs/0.42/contributing/index.html index 20a0be43902..8f2c2e3913d 100644 --- a/docs/0.42/contributing/index.html +++ b/docs/0.42/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.42/javascript-environment.html b/docs/0.42/javascript-environment.html index fb08c5c010a..1cbaac87734 100644 --- a/docs/0.42/javascript-environment.html +++ b/docs/0.42/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.42/javascript-environment/index.html b/docs/0.42/javascript-environment/index.html index fb08c5c010a..1cbaac87734 100644 --- a/docs/0.42/javascript-environment/index.html +++ b/docs/0.42/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.42/navigation.html b/docs/0.42/navigation.html index 4f96d2dab43..5873d7f5888 100644 --- a/docs/0.42/navigation.html +++ b/docs/0.42/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.42/navigation/index.html b/docs/0.42/navigation/index.html
      index 4f96d2dab43..5873d7f5888 100644
      --- a/docs/0.42/navigation/index.html
      +++ b/docs/0.42/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.42/performance.html b/docs/0.42/performance.html
      index d7b9417c009..8ff710da964 100644
      --- a/docs/0.42/performance.html
      +++ b/docs/0.42/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.42/performance/index.html b/docs/0.42/performance/index.html index d7b9417c009..8ff710da964 100644 --- a/docs/0.42/performance/index.html +++ b/docs/0.42/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.42/state.html b/docs/0.42/state.html index dd757d947e1..68982bf47f9 100644 --- a/docs/0.42/state.html +++ b/docs/0.42/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.43/contributing/index.html b/docs/0.43/contributing/index.html index e8c60aba1ea..6569c466f18 100644 --- a/docs/0.43/contributing/index.html +++ b/docs/0.43/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.43/javascript-environment.html b/docs/0.43/javascript-environment.html index 23cde65f153..efcd11d0788 100644 --- a/docs/0.43/javascript-environment.html +++ b/docs/0.43/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.43/javascript-environment/index.html b/docs/0.43/javascript-environment/index.html index 23cde65f153..efcd11d0788 100644 --- a/docs/0.43/javascript-environment/index.html +++ b/docs/0.43/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.43/navigation.html b/docs/0.43/navigation.html index f59f24391a4..e43e13706cf 100644 --- a/docs/0.43/navigation.html +++ b/docs/0.43/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.43/navigation/index.html b/docs/0.43/navigation/index.html
      index f59f24391a4..e43e13706cf 100644
      --- a/docs/0.43/navigation/index.html
      +++ b/docs/0.43/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.43/performance.html b/docs/0.43/performance.html
      index 8dda09b554c..4e044b7abd8 100644
      --- a/docs/0.43/performance.html
      +++ b/docs/0.43/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.43/performance/index.html b/docs/0.43/performance/index.html index 8dda09b554c..4e044b7abd8 100644 --- a/docs/0.43/performance/index.html +++ b/docs/0.43/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.43/state.html b/docs/0.43/state.html index 18e79281b52..03400e4873c 100644 --- a/docs/0.43/state.html +++ b/docs/0.43/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.44/contributing/index.html b/docs/0.44/contributing/index.html index 8f63e229ef5..a3794bfb791 100644 --- a/docs/0.44/contributing/index.html +++ b/docs/0.44/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.44/javascript-environment.html b/docs/0.44/javascript-environment.html index f2b0323434c..8648609646f 100644 --- a/docs/0.44/javascript-environment.html +++ b/docs/0.44/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.44/javascript-environment/index.html b/docs/0.44/javascript-environment/index.html index f2b0323434c..8648609646f 100644 --- a/docs/0.44/javascript-environment/index.html +++ b/docs/0.44/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.44/navigation.html b/docs/0.44/navigation.html index 7bd7c334271..cbf655e10e9 100644 --- a/docs/0.44/navigation.html +++ b/docs/0.44/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.44/navigation/index.html b/docs/0.44/navigation/index.html
      index 7bd7c334271..cbf655e10e9 100644
      --- a/docs/0.44/navigation/index.html
      +++ b/docs/0.44/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.44/performance.html b/docs/0.44/performance.html
      index 392284aece9..fe3ef962002 100644
      --- a/docs/0.44/performance.html
      +++ b/docs/0.44/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.44/performance/index.html b/docs/0.44/performance/index.html index 392284aece9..fe3ef962002 100644 --- a/docs/0.44/performance/index.html +++ b/docs/0.44/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.44/state.html b/docs/0.44/state.html index e04e9f5bcc1..06e105c5e17 100644 --- a/docs/0.44/state.html +++ b/docs/0.44/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.45/contributing/index.html b/docs/0.45/contributing/index.html index 44bcc2e9121..c8d1783fccb 100644 --- a/docs/0.45/contributing/index.html +++ b/docs/0.45/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.45/javascript-environment.html b/docs/0.45/javascript-environment.html index f4d2fe54779..a14b7c04d34 100644 --- a/docs/0.45/javascript-environment.html +++ b/docs/0.45/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.45/javascript-environment/index.html b/docs/0.45/javascript-environment/index.html index f4d2fe54779..a14b7c04d34 100644 --- a/docs/0.45/javascript-environment/index.html +++ b/docs/0.45/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.45/navigation.html b/docs/0.45/navigation.html index be19a92ec56..08c65c917e9 100644 --- a/docs/0.45/navigation.html +++ b/docs/0.45/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.45/navigation/index.html b/docs/0.45/navigation/index.html
      index be19a92ec56..08c65c917e9 100644
      --- a/docs/0.45/navigation/index.html
      +++ b/docs/0.45/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.45/performance.html b/docs/0.45/performance.html
      index 7e3168a4b68..23bdf96feaa 100644
      --- a/docs/0.45/performance.html
      +++ b/docs/0.45/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.45/performance/index.html b/docs/0.45/performance/index.html index 7e3168a4b68..23bdf96feaa 100644 --- a/docs/0.45/performance/index.html +++ b/docs/0.45/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.45/state.html b/docs/0.45/state.html index f15847b3e1a..2cc990fdf00 100644 --- a/docs/0.45/state.html +++ b/docs/0.45/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.46/contributing/index.html b/docs/0.46/contributing/index.html index 1e570e309a8..f0656cf4ef0 100644 --- a/docs/0.46/contributing/index.html +++ b/docs/0.46/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.46/javascript-environment.html b/docs/0.46/javascript-environment.html index 1f7c2c010e3..810c142b034 100644 --- a/docs/0.46/javascript-environment.html +++ b/docs/0.46/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.46/javascript-environment/index.html b/docs/0.46/javascript-environment/index.html index 1f7c2c010e3..810c142b034 100644 --- a/docs/0.46/javascript-environment/index.html +++ b/docs/0.46/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.46/navigation.html b/docs/0.46/navigation.html index 758d3851fdd..faa2933016a 100644 --- a/docs/0.46/navigation.html +++ b/docs/0.46/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.46/navigation/index.html b/docs/0.46/navigation/index.html
      index 758d3851fdd..faa2933016a 100644
      --- a/docs/0.46/navigation/index.html
      +++ b/docs/0.46/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.46/performance.html b/docs/0.46/performance.html
      index c0062f4e017..0f54cf59c3a 100644
      --- a/docs/0.46/performance.html
      +++ b/docs/0.46/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.46/performance/index.html b/docs/0.46/performance/index.html index c0062f4e017..0f54cf59c3a 100644 --- a/docs/0.46/performance/index.html +++ b/docs/0.46/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.46/state.html b/docs/0.46/state.html index 41a9ae3e2e9..38c3a36ce07 100644 --- a/docs/0.46/state.html +++ b/docs/0.46/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.47/contributing/index.html b/docs/0.47/contributing/index.html index ae20aa2c444..91523f4bf6d 100644 --- a/docs/0.47/contributing/index.html +++ b/docs/0.47/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.47/javascript-environment.html b/docs/0.47/javascript-environment.html index a1509a62e2f..fc42687b290 100644 --- a/docs/0.47/javascript-environment.html +++ b/docs/0.47/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.47/javascript-environment/index.html b/docs/0.47/javascript-environment/index.html index a1509a62e2f..fc42687b290 100644 --- a/docs/0.47/javascript-environment/index.html +++ b/docs/0.47/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.47/navigation.html b/docs/0.47/navigation.html index ab203a5f395..099987b52c9 100644 --- a/docs/0.47/navigation.html +++ b/docs/0.47/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.47/navigation/index.html b/docs/0.47/navigation/index.html
      index ab203a5f395..099987b52c9 100644
      --- a/docs/0.47/navigation/index.html
      +++ b/docs/0.47/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.47/performance.html b/docs/0.47/performance.html
      index b8c1e034f7b..fbfe39ef752 100644
      --- a/docs/0.47/performance.html
      +++ b/docs/0.47/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.47/performance/index.html b/docs/0.47/performance/index.html index b8c1e034f7b..fbfe39ef752 100644 --- a/docs/0.47/performance/index.html +++ b/docs/0.47/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.47/state.html b/docs/0.47/state.html index 980e98a8d72..e27b756bfe2 100644 --- a/docs/0.47/state.html +++ b/docs/0.47/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.48/contributing/index.html b/docs/0.48/contributing/index.html index 72c5a53cd2e..55d29f10126 100644 --- a/docs/0.48/contributing/index.html +++ b/docs/0.48/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.48/javascript-environment.html b/docs/0.48/javascript-environment.html index 60ecb7b3a2d..60e63832807 100644 --- a/docs/0.48/javascript-environment.html +++ b/docs/0.48/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.48/javascript-environment/index.html b/docs/0.48/javascript-environment/index.html index 60ecb7b3a2d..60e63832807 100644 --- a/docs/0.48/javascript-environment/index.html +++ b/docs/0.48/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.48/navigation.html b/docs/0.48/navigation.html index d637c620ab9..388994a7d88 100644 --- a/docs/0.48/navigation.html +++ b/docs/0.48/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.48/navigation/index.html b/docs/0.48/navigation/index.html
      index d637c620ab9..388994a7d88 100644
      --- a/docs/0.48/navigation/index.html
      +++ b/docs/0.48/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.48/performance.html b/docs/0.48/performance.html
      index 77a524da1be..b1bba727f85 100644
      --- a/docs/0.48/performance.html
      +++ b/docs/0.48/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.48/performance/index.html b/docs/0.48/performance/index.html index 77a524da1be..b1bba727f85 100644 --- a/docs/0.48/performance/index.html +++ b/docs/0.48/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.48/state.html b/docs/0.48/state.html index 7d6db95ecc9..f4ceb23e39a 100644 --- a/docs/0.48/state.html +++ b/docs/0.48/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.49/contributing/index.html b/docs/0.49/contributing/index.html index d8ce23278f1..dbe0e7bc190 100644 --- a/docs/0.49/contributing/index.html +++ b/docs/0.49/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.49/javascript-environment.html b/docs/0.49/javascript-environment.html index d807da9a1ed..30b358d7fa8 100644 --- a/docs/0.49/javascript-environment.html +++ b/docs/0.49/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.49/javascript-environment/index.html b/docs/0.49/javascript-environment/index.html index d807da9a1ed..30b358d7fa8 100644 --- a/docs/0.49/javascript-environment/index.html +++ b/docs/0.49/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.49/navigation.html b/docs/0.49/navigation.html index 60c561da00a..9882b28eb3f 100644 --- a/docs/0.49/navigation.html +++ b/docs/0.49/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.49/navigation/index.html b/docs/0.49/navigation/index.html
      index 60c561da00a..9882b28eb3f 100644
      --- a/docs/0.49/navigation/index.html
      +++ b/docs/0.49/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.49/performance.html b/docs/0.49/performance.html
      index 525e2c442ee..6bb2d5f35df 100644
      --- a/docs/0.49/performance.html
      +++ b/docs/0.49/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.49/performance/index.html b/docs/0.49/performance/index.html index 525e2c442ee..6bb2d5f35df 100644 --- a/docs/0.49/performance/index.html +++ b/docs/0.49/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.49/state.html b/docs/0.49/state.html index e0f047a1526..070d49ead83 100644 --- a/docs/0.49/state.html +++ b/docs/0.49/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.5/contributing/index.html b/docs/0.5/contributing/index.html index 71de2d0e921..194bf70ae93 100644 --- a/docs/0.5/contributing/index.html +++ b/docs/0.5/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.5/javascript-environment.html b/docs/0.5/javascript-environment.html index 2e415abfa60..bf6fe7937ec 100644 --- a/docs/0.5/javascript-environment.html +++ b/docs/0.5/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.5/javascript-environment/index.html b/docs/0.5/javascript-environment/index.html index 2e415abfa60..bf6fe7937ec 100644 --- a/docs/0.5/javascript-environment/index.html +++ b/docs/0.5/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.5/navigation.html b/docs/0.5/navigation.html index c529f75b8d7..df34d898da1 100644 --- a/docs/0.5/navigation.html +++ b/docs/0.5/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.5/navigation/index.html b/docs/0.5/navigation/index.html
      index c529f75b8d7..df34d898da1 100644
      --- a/docs/0.5/navigation/index.html
      +++ b/docs/0.5/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.5/performance.html b/docs/0.5/performance.html
      index baf1c61d37d..33bcd0c78c9 100644
      --- a/docs/0.5/performance.html
      +++ b/docs/0.5/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.5/performance/index.html b/docs/0.5/performance/index.html index baf1c61d37d..33bcd0c78c9 100644 --- a/docs/0.5/performance/index.html +++ b/docs/0.5/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.5/state.html b/docs/0.5/state.html index ba28ad4761c..9732d3295be 100644 --- a/docs/0.5/state.html +++ b/docs/0.5/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.50/contributing/index.html b/docs/0.50/contributing/index.html index d76c564e198..00a5e6e345a 100644 --- a/docs/0.50/contributing/index.html +++ b/docs/0.50/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.50/javascript-environment.html b/docs/0.50/javascript-environment.html index 3e1c1906130..b88b53866db 100644 --- a/docs/0.50/javascript-environment.html +++ b/docs/0.50/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.50/javascript-environment/index.html b/docs/0.50/javascript-environment/index.html index 3e1c1906130..b88b53866db 100644 --- a/docs/0.50/javascript-environment/index.html +++ b/docs/0.50/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.50/navigation.html b/docs/0.50/navigation.html index 25851292df8..528f317e8b9 100644 --- a/docs/0.50/navigation.html +++ b/docs/0.50/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.50/navigation/index.html b/docs/0.50/navigation/index.html
      index 25851292df8..528f317e8b9 100644
      --- a/docs/0.50/navigation/index.html
      +++ b/docs/0.50/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.50/performance.html b/docs/0.50/performance.html
      index 597e2d721b6..061c1df6c15 100644
      --- a/docs/0.50/performance.html
      +++ b/docs/0.50/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.50/performance/index.html b/docs/0.50/performance/index.html index 597e2d721b6..061c1df6c15 100644 --- a/docs/0.50/performance/index.html +++ b/docs/0.50/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.50/state.html b/docs/0.50/state.html index 4536e6752a1..6b9ab9df9a5 100644 --- a/docs/0.50/state.html +++ b/docs/0.50/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.51/contributing/index.html b/docs/0.51/contributing/index.html index 26643b94971..8ecdcf14a77 100644 --- a/docs/0.51/contributing/index.html +++ b/docs/0.51/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.51/javascript-environment.html b/docs/0.51/javascript-environment.html index 7d38813447c..2aec2a47601 100644 --- a/docs/0.51/javascript-environment.html +++ b/docs/0.51/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.51/javascript-environment/index.html b/docs/0.51/javascript-environment/index.html index 7d38813447c..2aec2a47601 100644 --- a/docs/0.51/javascript-environment/index.html +++ b/docs/0.51/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.51/navigation.html b/docs/0.51/navigation.html index 967ac5f999d..59b8fc88724 100644 --- a/docs/0.51/navigation.html +++ b/docs/0.51/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.51/navigation/index.html b/docs/0.51/navigation/index.html
      index 967ac5f999d..59b8fc88724 100644
      --- a/docs/0.51/navigation/index.html
      +++ b/docs/0.51/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.51/performance.html b/docs/0.51/performance.html
      index 611dbff0ed7..0972c423fb3 100644
      --- a/docs/0.51/performance.html
      +++ b/docs/0.51/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.51/performance/index.html b/docs/0.51/performance/index.html index 611dbff0ed7..0972c423fb3 100644 --- a/docs/0.51/performance/index.html +++ b/docs/0.51/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.51/state.html b/docs/0.51/state.html index 2066cfa8545..4cc7df15a7e 100644 --- a/docs/0.51/state.html +++ b/docs/0.51/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.52/contributing/index.html b/docs/0.52/contributing/index.html index 8c34ddcaa91..660b565e80f 100644 --- a/docs/0.52/contributing/index.html +++ b/docs/0.52/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.52/javascript-environment.html b/docs/0.52/javascript-environment.html index 20255639935..0e339e64514 100644 --- a/docs/0.52/javascript-environment.html +++ b/docs/0.52/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.52/javascript-environment/index.html b/docs/0.52/javascript-environment/index.html index 20255639935..0e339e64514 100644 --- a/docs/0.52/javascript-environment/index.html +++ b/docs/0.52/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.52/navigation.html b/docs/0.52/navigation.html index 5923f4f182b..bfc5d7714c2 100644 --- a/docs/0.52/navigation.html +++ b/docs/0.52/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.52/navigation/index.html b/docs/0.52/navigation/index.html
      index 5923f4f182b..bfc5d7714c2 100644
      --- a/docs/0.52/navigation/index.html
      +++ b/docs/0.52/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.52/performance.html b/docs/0.52/performance.html
      index 8729c81850d..5c2a15d1228 100644
      --- a/docs/0.52/performance.html
      +++ b/docs/0.52/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.52/performance/index.html b/docs/0.52/performance/index.html index 8729c81850d..5c2a15d1228 100644 --- a/docs/0.52/performance/index.html +++ b/docs/0.52/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.52/state.html b/docs/0.52/state.html index 852c59a5bbe..e0241a2e3d4 100644 --- a/docs/0.52/state.html +++ b/docs/0.52/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.53/contributing/index.html b/docs/0.53/contributing/index.html index 7bcaaf5145e..fed75648a27 100644 --- a/docs/0.53/contributing/index.html +++ b/docs/0.53/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.53/javascript-environment.html b/docs/0.53/javascript-environment.html index 40926a111ad..9cc03f31875 100644 --- a/docs/0.53/javascript-environment.html +++ b/docs/0.53/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.53/javascript-environment/index.html b/docs/0.53/javascript-environment/index.html index 40926a111ad..9cc03f31875 100644 --- a/docs/0.53/javascript-environment/index.html +++ b/docs/0.53/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.53/navigation.html b/docs/0.53/navigation.html index bb3f6abd459..8ac3da67149 100644 --- a/docs/0.53/navigation.html +++ b/docs/0.53/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.53/navigation/index.html b/docs/0.53/navigation/index.html
      index bb3f6abd459..8ac3da67149 100644
      --- a/docs/0.53/navigation/index.html
      +++ b/docs/0.53/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.53/performance.html b/docs/0.53/performance.html
      index d0fd095a116..d708ae30eaf 100644
      --- a/docs/0.53/performance.html
      +++ b/docs/0.53/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.53/performance/index.html b/docs/0.53/performance/index.html index d0fd095a116..d708ae30eaf 100644 --- a/docs/0.53/performance/index.html +++ b/docs/0.53/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.53/state.html b/docs/0.53/state.html index d2bb6538199..3bb2c91ca16 100644 --- a/docs/0.53/state.html +++ b/docs/0.53/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.54/contributing/index.html b/docs/0.54/contributing/index.html index 05274d0211c..a6af099f19b 100644 --- a/docs/0.54/contributing/index.html +++ b/docs/0.54/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.54/javascript-environment.html b/docs/0.54/javascript-environment.html index f20c6697e70..d90280a6be1 100644 --- a/docs/0.54/javascript-environment.html +++ b/docs/0.54/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.54/javascript-environment/index.html b/docs/0.54/javascript-environment/index.html index f20c6697e70..d90280a6be1 100644 --- a/docs/0.54/javascript-environment/index.html +++ b/docs/0.54/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.54/navigation.html b/docs/0.54/navigation.html index 8314906025f..c7b198bc6f7 100644 --- a/docs/0.54/navigation.html +++ b/docs/0.54/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.54/navigation/index.html b/docs/0.54/navigation/index.html
      index 8314906025f..c7b198bc6f7 100644
      --- a/docs/0.54/navigation/index.html
      +++ b/docs/0.54/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.54/performance.html b/docs/0.54/performance.html
      index 627fc72f235..2baf667cc18 100644
      --- a/docs/0.54/performance.html
      +++ b/docs/0.54/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.54/performance/index.html b/docs/0.54/performance/index.html index 627fc72f235..2baf667cc18 100644 --- a/docs/0.54/performance/index.html +++ b/docs/0.54/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.54/state.html b/docs/0.54/state.html index 4949622a966..66f8edf6d47 100644 --- a/docs/0.54/state.html +++ b/docs/0.54/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.55/contributing/index.html b/docs/0.55/contributing/index.html index 7fe2816c1ca..51cd9046e03 100644 --- a/docs/0.55/contributing/index.html +++ b/docs/0.55/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.55/javascript-environment.html b/docs/0.55/javascript-environment.html index 993c6312971..879e7710af3 100644 --- a/docs/0.55/javascript-environment.html +++ b/docs/0.55/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.55/javascript-environment/index.html b/docs/0.55/javascript-environment/index.html index 993c6312971..879e7710af3 100644 --- a/docs/0.55/javascript-environment/index.html +++ b/docs/0.55/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.55/navigation.html b/docs/0.55/navigation.html index 452478322b4..719c7a784ce 100644 --- a/docs/0.55/navigation.html +++ b/docs/0.55/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.55/navigation/index.html b/docs/0.55/navigation/index.html
      index 452478322b4..719c7a784ce 100644
      --- a/docs/0.55/navigation/index.html
      +++ b/docs/0.55/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.55/performance.html b/docs/0.55/performance.html
      index 3ab424b72f1..2c9d3d1356e 100644
      --- a/docs/0.55/performance.html
      +++ b/docs/0.55/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.55/performance/index.html b/docs/0.55/performance/index.html index 3ab424b72f1..2c9d3d1356e 100644 --- a/docs/0.55/performance/index.html +++ b/docs/0.55/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.55/state.html b/docs/0.55/state.html index 8d61b464965..af916e6e576 100644 --- a/docs/0.55/state.html +++ b/docs/0.55/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.6/contributing/index.html b/docs/0.6/contributing/index.html index 51cea31d196..0187a9362d0 100644 --- a/docs/0.6/contributing/index.html +++ b/docs/0.6/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.6/javascript-environment.html b/docs/0.6/javascript-environment.html index 0ea6e663c72..a51079d045b 100644 --- a/docs/0.6/javascript-environment.html +++ b/docs/0.6/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.6/javascript-environment/index.html b/docs/0.6/javascript-environment/index.html index 0ea6e663c72..a51079d045b 100644 --- a/docs/0.6/javascript-environment/index.html +++ b/docs/0.6/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.6/navigation.html b/docs/0.6/navigation.html index 50fe76f4892..c1157991612 100644 --- a/docs/0.6/navigation.html +++ b/docs/0.6/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.6/navigation/index.html b/docs/0.6/navigation/index.html
      index 50fe76f4892..c1157991612 100644
      --- a/docs/0.6/navigation/index.html
      +++ b/docs/0.6/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.6/performance.html b/docs/0.6/performance.html
      index 161f4074b3d..dac275058c5 100644
      --- a/docs/0.6/performance.html
      +++ b/docs/0.6/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.6/performance/index.html b/docs/0.6/performance/index.html index 161f4074b3d..dac275058c5 100644 --- a/docs/0.6/performance/index.html +++ b/docs/0.6/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.6/state.html b/docs/0.6/state.html index 1eb06436312..3056f97e5b3 100644 --- a/docs/0.6/state.html +++ b/docs/0.6/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.7/contributing/index.html b/docs/0.7/contributing/index.html index d10b9c40bee..416be3e7676 100644 --- a/docs/0.7/contributing/index.html +++ b/docs/0.7/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.7/javascript-environment.html b/docs/0.7/javascript-environment.html index 8499f0e8699..549bcaffad8 100644 --- a/docs/0.7/javascript-environment.html +++ b/docs/0.7/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.7/javascript-environment/index.html b/docs/0.7/javascript-environment/index.html index 8499f0e8699..549bcaffad8 100644 --- a/docs/0.7/javascript-environment/index.html +++ b/docs/0.7/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.7/navigation.html b/docs/0.7/navigation.html index 0d60a55d0d1..17381f45024 100644 --- a/docs/0.7/navigation.html +++ b/docs/0.7/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.7/navigation/index.html b/docs/0.7/navigation/index.html
      index 0d60a55d0d1..17381f45024 100644
      --- a/docs/0.7/navigation/index.html
      +++ b/docs/0.7/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.7/performance.html b/docs/0.7/performance.html
      index 9e40a78bb93..93c1d3896e4 100644
      --- a/docs/0.7/performance.html
      +++ b/docs/0.7/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.7/performance/index.html b/docs/0.7/performance/index.html index 9e40a78bb93..93c1d3896e4 100644 --- a/docs/0.7/performance/index.html +++ b/docs/0.7/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.7/state.html b/docs/0.7/state.html index e903a70944c..c17a57946ef 100644 --- a/docs/0.7/state.html +++ b/docs/0.7/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.8/contributing/index.html b/docs/0.8/contributing/index.html index ef555d06b88..cbc948bb17a 100644 --- a/docs/0.8/contributing/index.html +++ b/docs/0.8/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.8/javascript-environment.html b/docs/0.8/javascript-environment.html index 3cd21e54e4e..ddc6c5a33ff 100644 --- a/docs/0.8/javascript-environment.html +++ b/docs/0.8/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.8/javascript-environment/index.html b/docs/0.8/javascript-environment/index.html index 3cd21e54e4e..ddc6c5a33ff 100644 --- a/docs/0.8/javascript-environment/index.html +++ b/docs/0.8/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.8/navigation.html b/docs/0.8/navigation.html index 4e5b6b96eb7..9264896b9d1 100644 --- a/docs/0.8/navigation.html +++ b/docs/0.8/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.8/navigation/index.html b/docs/0.8/navigation/index.html
      index 4e5b6b96eb7..9264896b9d1 100644
      --- a/docs/0.8/navigation/index.html
      +++ b/docs/0.8/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.8/performance.html b/docs/0.8/performance.html
      index 4c4ff4d105a..cdb82bbb557 100644
      --- a/docs/0.8/performance.html
      +++ b/docs/0.8/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.8/performance/index.html b/docs/0.8/performance/index.html index 4c4ff4d105a..cdb82bbb557 100644 --- a/docs/0.8/performance/index.html +++ b/docs/0.8/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.8/state.html b/docs/0.8/state.html index e3d096361d5..f6a3c212c9f 100644 --- a/docs/0.8/state.html +++ b/docs/0.8/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.9/contributing/index.html b/docs/0.9/contributing/index.html index e0a1a1e31b2..73a074ca374 100644 --- a/docs/0.9/contributing/index.html +++ b/docs/0.9/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/0.9/javascript-environment.html b/docs/0.9/javascript-environment.html index 44d7879713a..0d99a8b52a9 100644 --- a/docs/0.9/javascript-environment.html +++ b/docs/0.9/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

    -
  • console.{log, warn, error, info, trace, table}
  • +
  • console.{log, warn, error, info, trace, table, group, groupEnd}
  • CommonJS require
  • XMLHttpRequest, fetch
  • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
  • diff --git a/docs/0.9/javascript-environment/index.html b/docs/0.9/javascript-environment/index.html index 44d7879713a..0d99a8b52a9 100644 --- a/docs/0.9/javascript-environment/index.html +++ b/docs/0.9/javascript-environment/index.html @@ -78,7 +78,7 @@

    Many standards functions are also available on all the supported JavaScript runtimes.

    Browser

      -
    • console.{log, warn, error, info, trace, table}
    • +
    • console.{log, warn, error, info, trace, table, group, groupEnd}
    • CommonJS require
    • XMLHttpRequest, fetch
    • {set, clear}{Timeout, Interval, Immediate}, {request, cancel}AnimationFrame
    • diff --git a/docs/0.9/navigation.html b/docs/0.9/navigation.html index a3ddd41ed57..158abe906c9 100644 --- a/docs/0.9/navigation.html +++ b/docs/0.9/navigation.html @@ -47,6 +47,8 @@ const App = createStackNavigator({ Home: { screen: HomeScreen }, Profile: { screen: ProfileScreen }, }); + +export default App;

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.9/navigation/index.html b/docs/0.9/navigation/index.html
      index a3ddd41ed57..158abe906c9 100644
      --- a/docs/0.9/navigation/index.html
      +++ b/docs/0.9/navigation/index.html
      @@ -47,6 +47,8 @@ const App = createStackNavigator({
         Home: { screen: HomeScreen },
         Profile: { screen: ProfileScreen },
       });
      +
      +export default App;
       

      Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:

      class HomeScreen extends React.Component {
      diff --git a/docs/0.9/performance.html b/docs/0.9/performance.html
      index 1e9f4b95d19..ff2626c639d 100644
      --- a/docs/0.9/performance.html
      +++ b/docs/0.9/performance.html
      @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD
         console.log('Done');
       });
       
      -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.9/performance/index.html b/docs/0.9/performance/index.html index 1e9f4b95d19..ff2626c639d 100644 --- a/docs/0.9/performance/index.html +++ b/docs/0.9/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

      You can run via node packager/modulePaths.js.

      +

      You can run via node packager/generateModulePaths.js.

      This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

      Updating the config.js

      Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

      diff --git a/docs/0.9/state.html b/docs/0.9/state.html index 00dfdb86f86..c211daf7552 100644 --- a/docs/0.9/state.html +++ b/docs/0.9/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/contributing/index.html b/docs/contributing/index.html index aef0e3bc16e..10b607665bc 100644 --- a/docs/contributing/index.html +++ b/docs/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -41,9 +41,12 @@
  • Read through the React Native docs. If you find anything that is confusing or can be improved, you can make edits by clicking "Edit" at the top of most docs.
  • Browse Stack Overflow and answer questions. This will help you get familiarized with common pitfalls or misunderstandings, which can be useful when contributing updates to the documentation.
  • Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
  • +
  • Before opening your pull request, make sure you have fully tested your changes. Test your changes locally and by running the various tests provided.
  • +
  • For information on how to build the React Native project locally with your changes, make sure to read through the Building React Native from source guide.
  • +
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -54,13 +57,14 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Bugs

-

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.

+

We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.

If you have questions about using React Native, the Community page list various resources that should help you get started.

We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.

Reporting new issues

diff --git a/docs/javascript-environment.html b/docs/javascript-environment.html index a6d2f61c41a..9f5eb5ee48d 100644 --- a/docs/javascript-environment.html +++ b/docs/javascript-environment.html @@ -78,7 +78,7 @@

Many standards functions are also available on all the supported JavaScript runtimes.

Browser

Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -46,7 +46,7 @@
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -57,7 +57,8 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

diff --git a/docs/next/contributing/index.html b/docs/next/contributing/index.html index fb146314b39..6304425fa55 100644 --- a/docs/next/contributing/index.html +++ b/docs/next/contributing/index.html @@ -30,8 +30,8 @@ } });
Edit

How to Contribute

React Native is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody using Facebook's mobile apps. If you're interested in contributing to React Native, hopefully this document makes the process for contributing clear.

-

Code of Conduct

-

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

+

Code of Conduct

+

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Get involved

There are many ways to contribute to React Native, and many of them do not involve writing any code. Here's a few ideas to get started:

    @@ -46,7 +46,7 @@
  • Check out the Testing your changes guide to find out about the numerous tests which has been provided to help ensure that any new changes wont cause a regression.

Contributions are very welcome. If you think you need help planning your contribution, please hop into #react-native and let people know you're looking for a mentor.

-

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions in the React Native Core Contributors Facebook group.

+

Core contributors to React Native meet monthly and post their meeting notes on the React Native blog. You can also find ad hoc discussions at https://discuss.reactjs.org/.

Triaging issues and pull requests

One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.

    @@ -57,7 +57,8 @@

You can learn more about handling issues in the maintainer's guide.

Our development process

-

Some of the core team will be working directly on GitHub. These changes will be public from the beginning. Other changesets will come via a bridge with Facebook's internal source control. This is a necessity as it allows engineers at Facebook outside of the core team to move fast and contribute from an environment they are comfortable in.

+

The facebook/react-native repository on GitHub contains a mirror of the React Native library used internally at Facebook. The GitHub repository is linked to Facebook's internal source control, and all changes made to the internal React Native project get synced to the master branch on GitHub on an ongoing basis. Having Facebook's internal source control serve as the source of truth allows engineers at Facebook outside of the React Native team to move fast and contritube from an environment they are comfortable in.

+

React Native is also contributed to by a core team of engineers from several companies outside of Facebook, as well as many other open source contributors. The core team coordinates open source releases through the react-native-releases repository on GitHub.

When a change made on GitHub is approved, it will first be imported into Facebook's internal source control. The change will eventually sync back to GitHub as a single commit once it has passed all internal tests.

Branch organization

We will do our best to keep master in good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.

diff --git a/docs/performance.html b/docs/performance.html index 91680feec10..90439adaa87 100644 --- a/docs/performance.html +++ b/docs/performance.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); });
-

You can run via node packager/modulePaths.js.

+

You can run via node packager/generateModulePaths.js.

This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

Updating the config.js

Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

diff --git a/docs/performance/index.html b/docs/performance/index.html index 91680feec10..90439adaa87 100644 --- a/docs/performance/index.html +++ b/docs/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

You can run via node packager/modulePaths.js.

+

You can run via node packager/generateModulePaths.js.

This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

Updating the config.js

Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

diff --git a/docs/state.html b/docs/state.html index 93c76f4b345..41fa688319d 100644 --- a/docs/state.html +++ b/docs/state.html @@ -73,7 +73,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp);
-

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.