Skip to content

Meet Hermes, a new JavaScript engine for React Native

updated

Facebook has introduced Hermes, an open source JavaScript engine optimized for running React Native on Android. The engine was announced at Chain React the week before, and the React Native blog followed up with a post pointing developers to the project and to documentation for trying it out.

What Hermes is

Hermes is described as a small, lightweight JavaScript engine optimized for React Native on Android. It targets the more constrained environment of a mobile phone, compared with a desktop or laptop.

According to the announcement, Hermes improves React Native performance in three main areas:

  • Memory utilization: the engine is designed to use less memory.
  • Download size: apps using Hermes can be smaller to download.
  • Time to interactive (TTI): the time it takes for an app to become usable after launch is reduced.

Why Facebook built it

The motivation came from performance data the team analyzed. That analysis showed the JavaScript engine was a significant contributor to both startup performance and download size. After exploring other options, the team decided to build a new engine focused on mobile.

The broader Hermes announcement frames the goal as improving app performance even on mass-market devices, which often have limited memory, slow storage and reduced computing power.

Getting started

The React Native documentation now includes a guide explaining how to enable Hermes in an existing React Native app.

Source: reactnative.dev