react-native-threads icon indicating copy to clipboard operation
react-native-threads copied to clipboard

UIManager could not be found Android with Hermes

Open mauriciopf opened this issue 5 years ago • 2 comments

For ThreadBaseReactPackage new UIManagerStubModule(catalystApplicationContext) doesn't seem to be working in RN 0.61

Is someone having this issue?

Image from iOS

mauriciopf avatar Feb 26 '20 23:02 mauriciopf

Hello, @mauriciopf! Just replace it with

import com.facebook.react.uimanager.UIManagerModule;
...
new UIManagerModule(catalystApplicationContext, createViewManagers(catalystApplicationContext), 0)

manvi-ivnam avatar Apr 10 '20 14:04 manvi-ivnam

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!

mboperator avatar Apr 28 '20 02:04 mboperator