Hermes was an essential character in Greek mythology. He was a son of Zeus, who was noted for his work as a guide and messenger. Moreover, he was recognized as a symbol of prosperity among merchants.
That’s why Facebook coined that name to launch an engine that can revolutionize the way developers generate mobile applications. Especially for those who believe that adding more features can generate performance problems.
Hermes didn’t! He could handle several tasks at the same time and always guaranteed results. Now, in mobile applications, the most successful ones incorporate different functionalities that are useful for users. Nevertheless, you always need to ensure optimal performance.
A clear example of a lousy development was the Twitter Fleets. Many users complained that these “stories” took a long time to load on their devices. Even the swiping mechanism was clunky. There was no good user experience work!
Regardless of the device from which they access, the idea is that users can experience good performance. In this way, if this audience has a low-end smartphone, they can still access the new features of mobile applications. Therefore, it ensures accessibility for all users.
The idea is that Hermes can refine the user experience on performance in React Native. Mainly, this engine works on a few metrics. The two main ones are:
It’s important to mention that Hermes was created with a mobile focus. This allows React Native apps to be constantly optimized. Therefore, it is intended to work in mobile applications, but they did not create it for browsers or server infrastructures.
The idea is that developers will also have a much more efficient job using Hermes applied to React. The first thing to note is that they will have to make changes to the build.gradle. That is, it’s useful to compile the application, something that can be done with this information:
project.ext.react = [
The benefits of working with it are obvious. The first thing that stands out is the speed of iteration, which allows having a bytecode compiled in a deferred way. The idea is that the developer works in a faster, more comfortable, and structured way. Maybe that’s why the name of this engine was chosen since Hermes was a swift god.
With this compiler AOT (ahead of time), the whole package is compiled in bytecode in advance. This is a substantial difference compared to engines that use JIT (just-in-time) systems. Therefore, Hermes focuses on CPU metrics and allows more reliable work.
On the other hand, we must also highlight the enormous debugging work present in this engine. Facebook has incorporated support for remote debugging of Chrome through the DevTools protocol. In addition, developers can connect remotely to the Hermes engine running on their device, debugging applications natively.
The importance of using Hermes in React Native
Hermes is currently available on Github, and all developers can use it for their projects.
Just as it happened to the god of Olympus, you must be able to adapt to all requests and demands to be recognized. You must always guarantee results because your reputation depends on them.
Now you know what Hermes is for in React Native. If you want to know more about similar topics, we invite you to read content from our blog.