Skip to content

Commit

Permalink
Fix ReactInstanceManager to add getJSIModule() as an alternate path (#…
Browse files Browse the repository at this point in the history
…41495)

Summary:

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
  • Loading branch information
arushikesarwani94 authored and facebook-github-bot committed Nov 20, 2023
1 parent 6321371 commit 93159c8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1407,9 +1407,10 @@ private ReactApplicationContext createReactContext(
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) {
Expand Down

0 comments on commit 93159c8

Please sign in to comment.