O'Reilly logo

React Native Cookbook by Crysfel Villa, Stan Bershadskiy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Optimizing our JavaScript code

It's safe to say that your React Native application will be written mostly using JavaScript. You may have some native modules and custom UI components, but for the most part, all your view and business logic will be written in JSX and JavaScript. Most likely, you will be using language constructs introduced with ES6. These may be available natively by the JavaScript interpreter bundled with React Native (JavaScriptCore) or polyfilled by the Babel transpiler. Since JavaScript constitutes most of our application, this should be the first part we optimize if we want to squeeze some performance out of our application.

This recipe will provide some helpful tips in optimizing JavaScript code to be as performant as possible. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required