renative
renative copied to clipboard
enable Hermes
I'm trying to activate Hermes without any success.
I tried this already:
1 - Make sure that "reactNativeEngine": "hermes" in the renative.json of the template
2 - Run the app with -r to generate the platformBuild folder again.
3 - After this if I check global.HermesInternal in runtime it always returns false.
Another thing that I tried is to create a new build.gradle and add this piece of code:
This doesn't work neither.
the second variant should not work but the first one should. Can you set that, run it with -r
and then check platformBuilds/xxx_android
folder if rnv enabled it correctly in the native code?
yes, it updates the build.gradle
But then in runtime I always get global.HermesInternal = false. And also Chrome Debugger doesn't find any Hermes app
looking at the hermes docs that's all you need to do for android. We'll have to investigate this further
Thanks!
Actual hermes engine is working as default but can't override it with other engines on 1.0.0-rc.6 new project
@GabrieleKaceviciute @pauliusguzas 1.0.0-rc.7. Hermes works in the repo and in new project as well. How to check: modify renative. json by set other engine. For example:
"platforms": { "android":{ "reactNativeEngine": "v8-android" } },