We're at Stripe

Sessions this week!

Fresh off being awarded Stripe's Services Implementation Specialization, we're in San Francisco to spend time with everyone. Make sure to say hi👋

Back

React Native 0.64

Dominic Sherman
Dominic ShermanThursday, April 1, 2021
an iphone on a table

The Facebook team recently announced their newest React Native version, which comes with some huge improvements. While some of these changes are focused on the developer experience, the main ones will benefit all users of these apps.

Hermes for iOS

Hermes is a JavaScript engine specifically built for React Native, which provides faster launch times, decreased memory usage, and smaller app sizes. These benefits together provide the user with a faster, easier experience to get started using your app, especially those on older devices who might not have as much memory or storage space available. Hermes as an engine has been around since its debut at Chain React 2019, but previously it was only available for use on Android. Now, with version 0.64, Hermes can be enabled on iOS devices.

In a direct comparison done by the engineering team at Facebook of a React Native app leveraging Hermes versus another without the Hermes engine, we identified 3 key improvements we see having an immediate impact on app performance:

  • The time to interaction was over 2 seconds faster
  • The memory utilization was almost 50MB less
  • The application was almost 20MB smaller

Hermes logo

Hermes Proxy Support

With all of the improvements mentioned above for apps running Hermes, some apps were unable to use Hermes due to compatibility issues with popular libraries (for example react-native-firebase and mobx). Proxy support has now been added to Hermes in this version to allow those apps to enable Hermes and get all of the performance benefits that come with it.

Performance tracing with Hermes

Previously, being able to do an in-depth analysis of the performance of your application took additional plugins or libraries. Now, developers running React Native using Hermes can easily check these details in the Performance tab of Chrome DevTools to ensure the app is always running at the high speeds we expect. This also allows developers to more easily debug any performance issues and isolate areas of the app that might need some more optimization.

Screenshot of code

Inline Requires enabled by default

According to the React Native release blog:

Inline Requires is a Metro configuration option that improves startup time by delaying execution of JavaScript modules until they are used, instead of at startup.

While this feature has been available for use for a couple years, it is now enabled by default.

Ready to see the benefits of React Native 0.64 in your app? At Echobind, we are here to support you at any point in the development life cycle, contact us for help upgrading your React Native app.

Share this post

twitterfacebooklinkedin

Related Posts:

Interested in working with us?

Give us some details about your project, and our team will be in touch with how we can help.

Get in Touch