Fix ReactInstanceManager to add getJSIModule() as an alternate path (#41495)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41495

Fix ReactInstanceManager for adding the callsite of `getJSIModule()` as an alternate path to new way of Fabric initialization in order to make Catalyst and RN-Tester work with the changes for Fabric initialization

Reviewed By: javache

Differential Revision: D51338036

fbshipit-source-id: 49badac52f1032f1032a989b76dd422e3cf7582f
This commit is contained in:
Arushi Kesarwani
2023-11-20 10:26:27 -08:00
committed by Facebook GitHub Bot
parent 6321371212
commit e8323781fa
@@ -1407,9 +1407,10 @@ public class ReactInstanceManager {
reactContext, catalystInstance.getJavaScriptContextHolder()));
}
if (ReactFeatureFlags.enableFabricRenderer) {
catalystInstance.getJSIModule(JSIModuleType.UIManager);
if (mUIManagerProvider != null) {
catalystInstance.setFabricUIManager(mUIManagerProvider.createUIManager(reactContext));
} else {
catalystInstance.getJSIModule(JSIModuleType.UIManager);
}
}
if (mBridgeIdleDebugListener != null) {