diff --git a/docs/next/hermes.html b/docs/next/hermes.html index 1e2c66bb866..8dbaf2ed43a 100644 --- a/docs/next/hermes.html +++ b/docs/next/hermes.html @@ -103,7 +103,7 @@

If you've recently created a new app from scratch, you should see if Hermes is enabled in the welcome view:

Where to find JS engine status in AwesomeProject

A HermesInternal global variable will be available in JavaScript that can be used to verify that Hermes is in use:

-
const isHermes = () => global.HermesInternal !== null;
+
const isHermes = () => !!global.HermesInternal;
 

To see the benefits of Hermes, try making a release build/deployment of your app to compare. For example:

$ npx react-native run-android --variant release
diff --git a/docs/next/hermes/index.html b/docs/next/hermes/index.html
index 1e2c66bb866..8dbaf2ed43a 100644
--- a/docs/next/hermes/index.html
+++ b/docs/next/hermes/index.html
@@ -103,7 +103,7 @@
 

If you've recently created a new app from scratch, you should see if Hermes is enabled in the welcome view:

Where to find JS engine status in AwesomeProject

A HermesInternal global variable will be available in JavaScript that can be used to verify that Hermes is in use:

-
const isHermes = () => global.HermesInternal !== null;
+
const isHermes = () => !!global.HermesInternal;
 

To see the benefits of Hermes, try making a release build/deployment of your app to compare. For example:

$ npx react-native run-android --variant release