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:
Pull Request resolved: #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
  • Loading branch information
arushikesarwani94 authored and facebook-github-bot committed Nov 20, 2023
1 parent 6321371 commit e832378
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 e832378

Please sign in to comment.