Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

react-native 0.63.4 with Hermes (android): Crash on startup

$
0
0

I've been building an app in React-Native. It initially was a 0.60 project, and over the course of development I have upgraded it several times and not it's on 0.63.4.

I noticed that, when running a release build on Android, the app feels really slow. It feels like it's eating up all the phone's memory. When I run it in Android Studio and attach a profiler, all seems normal though (+- 15% CPU usage, 128mb memory usage).

I tried adding Hermes to my app to see if it would make any difference, but as soon as I set the enableHermes parameter to true, clean & build, my app crashes without any error message (after a successful build) as soon as it launches.

I then went to React-Native's docs, where an alert said that each Hermes release is aimed at a specific RN version. Fine, I thought. React 0.63.x has Hermes version 0.5.3. Whenever I go to my yarn.lock and set hermes-engine "0.5.3", it said it cannot find it and asks me which version I want to install instead.

I'm puzzled.

QuestionWhat version of Hermes is appropriate for React-Native 0.63.4, and How do I add it appropriately to prevent the no-error-message crashes I'm getting now?

Any guidance would be highly appreciated.


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>