--- id: version-0.50-javascript-environment title: javascript-environment original_id: javascript-environment ---

JavaScript Environment #

JavaScript Runtime #

When using React Native, you're going to be running your JavaScript code in two environments:

While both environments are very similar, you may end up hitting some inconsistencies. We're likely going to experiment with other JS engines in the future, so it's best to avoid relying on specifics of any runtime.

JavaScript Syntax Transformers #

Syntax transformers make writing code more enjoyable by allowing you to use new JavaScript syntax without having to wait for support on all interpreters.

As of version 0.5.0, React Native ships with the Babel JavaScript compiler. Check Babel documentation on its supported transformations for more details.

Here's a full list of React Native's enabled transformations.

ES5

ES6

ES7

Specific

Polyfills #

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

Browser

ES6

ES7

Specific

← PreviousContinue Reading →

Improve this page by sending a pull request!