Skip to content

Commit

Permalink
Eager initialize Fabric in RN VR apps
Browse files Browse the repository at this point in the history
Summary:
Enable eager intialization of FabricUIManager during intiialization of React Native.
This feature highly improved TTRC in Markeptlace Home

changelog: [internal] internal

Reviewed By: genkikondo

Differential Revision: D33585099

fbshipit-source-id: 0ffbc720bcb1edd1b04180189a52c82e9e2fa800
  • Loading branch information
mdvacca authored and facebook-github-bot committed Jan 26, 2022
1 parent 203a82e commit 9df02ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Expand Up @@ -1390,7 +1390,7 @@ private ReactApplicationContext createReactContext(
mJSIModulePackage.getJSIModules(
reactContext, catalystInstance.getJavaScriptContextHolder()));
}
if (ReactFeatureFlags.eagerInitializeFabric) {
if (ReactFeatureFlags.enableFabricRenderer) {
catalystInstance.getJSIModule(JSIModuleType.UIManager);
}
if (mBridgeIdleDebugListener != null) {
Expand Down
Expand Up @@ -64,9 +64,6 @@ public class ReactFeatureFlags {
/** This feature flag enables logs for Fabric */
public static boolean enableFabricLogs = false;

/** Feature flag to configure eager initialization of Fabric */
public static boolean eagerInitializeFabric = false;

/** Enables Static ViewConfig in RN Android native code. */
public static boolean enableExperimentalStaticViewConfigs = false;

Expand Down

0 comments on commit 9df02ff

Please sign in to comment.