-
Notifications
You must be signed in to change notification settings - Fork 963
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
The app crashes when using new Hermes engine #664
Comments
Hi @johanquiroga 👋 And yes, this is because Icons module relies on Proxies, but this was the simplest solution for us. Btw, MobX users have the same issues with Hermes. |
I think we should use module
ie: import PolyfillProxy from 'proxy-polyfill/src/proxy'
...
return new PolyfillProxy({}, {...}) |
@anhtuank7c does it resolves an issue? |
@anhtuank7c I did some review on this now, and what I get is that we don't get application crashes, but for any reason it's unable to find requested property, e.g: const HeartIcon = () => <Icon name='heart' /> will lead to runtime error of |
Hi all
icons from: (https://akveo.github.io/eva-icons/#/) Other information:
|
@AndreaTurco the reason is that Hermes engine doesn't support proxies. This engine is used to increase Android performance, and it doesn't affect iOS in total. Currently we have no workaround to get rid of proxies, so if you really need Hermes - your solution would work, but will affect UX because of loading icons remotely instead of using SVGs. |
Good news ever!!!! |
@anhtuank7c thanks for sharing 👍 |
@anhtuank7c Please any workaround? am using react-native 0.62 but I still have this error... |
@lewatt23 Did you try |
@anhtuank7c My bad thought I was installed by default since I was using rn 0.62.2, just installed and is working fine, thanks :) |
for those using 0.63 use npm install hermes-engine@v0.5.2-rc1 |
It worked after clean gradle builds |
0.64 will have Proxy enabled by default on Hermes. Woohoo! |
Workssss |
Issue type
Issue description
Current behavior:
The app crashes when using new Hermes engine.
This only happened once I added the Icons Module, before that the app was working correctly with the Hermes engine.

Expected behavior:
The app works with or without the Hermes engine.
Steps to reproduce:
Other information:
OS, device, package version
The text was updated successfully, but these errors were encountered: