Skip to content

Commit e47decf

Browse files
committed
fixup! Ensure REACT_NATIVE_OVERRIDE_HERMES_DIR is set
1 parent 27e7dae commit e47decf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/host/android/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,13 @@ task checkHermesOverride {
138138
doFirst {
139139
if (!System.getenv("REACT_NATIVE_OVERRIDE_HERMES_DIR")) {
140140
throw new GradleException([
141-
"React Native Node-API needs a custom version of Hermes with Node-API enabled.",
142-
"Run the following in your terminal, to clone Hermes and instruct React Native to use it:",
143-
"",
144-
"export REACT_NATIVE_OVERRIDE_HERMES_DIR=`npx react-native-node-api vendor-hermes --silent --force`",
145-
"",
146-
"And follow this guide to build React Native from source:",
147-
"https://reactnative.dev/contributing/how-to-build-from-source#update-your-project-to-build-from-source"
141+
"React Native Node-API needs a custom version of Hermes with Node-API enabled.",
142+
"Run the following in your terminal, to clone Hermes and instruct React Native to use it:",
143+
"",
144+
"export REACT_NATIVE_OVERRIDE_HERMES_DIR=`npx react-native-node-api vendor-hermes --silent --force`",
145+
"",
146+
"And follow this guide to build React Native from source:",
147+
"https://reactnative.dev/contributing/how-to-build-from-source#update-your-project-to-build-from-source"
148148
].join('\n'))
149149
}
150150
}

0 commit comments

Comments
 (0)