From 1581a55d9dfd26d2b23960443120db3082db820b Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Mon, 1 Jun 2020 16:03:22 +0000 Subject: [PATCH] Deploy website Deploy website version based on 5d4e7a596e4b5bb06c377f197efae6b1a79738e5 --- docs/next/hermes.html | 2 +- docs/next/hermes/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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