Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIManager could not be found Android with Hermes #100

Open
mauriciopf opened this issue Feb 26, 2020 · 2 comments
Open

UIManager could not be found Android with Hermes #100

mauriciopf opened this issue Feb 26, 2020 · 2 comments

Comments

@mauriciopf
Copy link

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

Is someone having this issue?

Image from iOS

@manvi-ivnam
Copy link

manvi-ivnam commented Apr 10, 2020

Hello, @mauriciopf!
Just replace it with

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

@mboperator
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants