UIManager could not be found Android with Hermes
mauriciopf opened this issue · 2 comments
mauriciopf commented
manvi-ivnam commented
Hello, @mauriciopf!
Just replace it with
import com.facebook.react.uimanager.UIManagerModule;
...
new UIManagerModule(catalystApplicationContext, createViewManagers(catalystApplicationContext), 0)
mboperator commented
Thanks @dobrynia
@mauriciopf ,
I ended up patching this file:
https://github.com/joltup/react-native-threads/blob/master/android/src/main/java/com/reactlibrary/ThreadBaseReactPackage.java
with what dobrynia recommended.
Then I used https://github.com/ds300/patch-package to create a patch file so I don't have to fork the repo.
Here's the resulting patch file:
https://gist.github.com/mboperator/d20ee2ca2575aeda87f9b124b6b33c77
Hopefully it helps!