mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix ReactInstanceManager to initialize the UIManager (#41594)
Summary: Adding `initialize()` to FabricUIManager just as was done by JSIModule Without this change switching to UIManagerProvider would cause the UI to be Frozen and the events not correctly registered. Pull Request resolved: https://github.com/facebook/react-native/pull/41594 Reviewed By: javache Differential Revision: D51456979 fbshipit-source-id: 8d97533340a88ec6bb2bf0f257b6acfaa59da471
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4e92016a09
commit
0f239d3301
+3
-1
@@ -1408,7 +1408,9 @@ public class ReactInstanceManager {
|
||||
}
|
||||
if (ReactFeatureFlags.enableFabricRenderer) {
|
||||
if (mUIManagerProvider != null) {
|
||||
catalystInstance.setFabricUIManager(mUIManagerProvider.createUIManager(reactContext));
|
||||
UIManager uiManager = mUIManagerProvider.createUIManager(reactContext);
|
||||
uiManager.initialize();
|
||||
catalystInstance.setFabricUIManager(uiManager);
|
||||
} else {
|
||||
catalystInstance.getJSIModule(JSIModuleType.UIManager);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user