renative icon indicating copy to clipboard operation
renative copied to clipboard

Cannot activate hermes

Open matiasmateu opened this issue 2 years ago • 4 comments

Describe the bug Hermes cannot be enabled on Android

To Reproduce 1 - Created a new blank RNV project ( https://github.com/matiasmateu/renativeHermes )

2 - Added reactNativeEngine = "hermes" to platforms.android ( https://github.com/matiasmateu/renativeHermes/blob/ec21fdcfb224e35108ae09bf6e13f01bb5c19f64/renative.json#L4 )

2.1 - I can see in platformBuilds -> build.grade: enableHermes: true && new deps debugImplementation files("{pathToProject}/emptyRenative/node_modules/hermes-engine/android/hermes-debug.aar") releaseImplementation files("{pathToProject}/emptyRenative/node_modules/hermes-engine/android/hermes-release.aar")

3 - However, global.HermesInternal is always undefined ( https://github.com/matiasmateu/renativeHermes/blob/ec21fdcfb224e35108ae09bf6e13f01bb5c19f64/src/app/index.js#L6 )

Expected behavior global.HermesInternal should not be undefined

Desktop:

  • OS: mac OS Monterrey 12.2.1 (21D62)
  • Node Version v16.8.0
  • RNV Version 0.35.4

matiasmateu avatar Jul 04 '22 09:07 matiasmateu

Having this issue as well

kevinbtesar avatar Oct 13 '22 14:10 kevinbtesar

@matiasmateu thanks for reporting this issue, is this still reproduced on latest version?

GabrieleKaceviciute avatar Jun 26 '23 14:06 GabrieleKaceviciute

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