renative icon indicating copy to clipboard operation
renative copied to clipboard

enable Hermes

Open matiasmateu opened this issue 2 years ago • 6 comments

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 Screen Shot 2022-05-12 at 11 48 42

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: Screen Shot 2022-05-12 at 11 52 10

This doesn't work neither.


matiasmateu avatar May 12 '22 09:05 matiasmateu

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?

mihaiblaga89 avatar May 12 '22 10:05 mihaiblaga89

Screen Shot 2022-05-12 at 12 30 52

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

matiasmateu avatar May 12 '22 10:05 matiasmateu

looking at the hermes docs that's all you need to do for android. We'll have to investigate this further

mihaiblaga89 avatar May 12 '22 10:05 mihaiblaga89

Thanks!

matiasmateu avatar May 12 '22 10:05 matiasmateu

Actual hermes engine is working as default but can't override it with other engines on 1.0.0-rc.6 new project

pauliusguzas avatar Dec 22 '23 13:12 pauliusguzas

@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" } },

ElenaDiachenko avatar Dec 27 '23 16:12 ElenaDiachenko