Ship eager initialization of mapbuffer

Summary:
Ship eager initialization of mapbuffer

changelog: [internal] internal

Reviewed By: ShikaSD

Differential Revision: D33754255

fbshipit-source-id: 1b8359b8c9fbc4fc7a155cb73e9147fd5b1f5963
This commit is contained in:
David Vacca
2022-01-25 17:23:30 -08:00
committed by Facebook GitHub Bot
parent 9df02fff6b
commit 93677cecde
2 changed files with 1 additions and 4 deletions
@@ -74,9 +74,6 @@ public class ReactFeatureFlags {
/** Enables a more aggressive cleanup during destruction of ReactContext */
public static boolean enableReactContextCleanupFix = false;
/** Feature flag to configure eager initialization of MapBuffer So file */
public static boolean enableEagerInitializeMapBufferSoFile = false;
/** Feature flag to configure eager attachment of the root view/initialisation of the JS code */
public static boolean enableEagerRootViewAttachment = false;
@@ -45,7 +45,7 @@ public class FabricJSIModuleProvider implements JSIModuleProvider<UIManager> {
Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "FabricJSIModuleProvider.registerBinding");
final Binding binding = new Binding();
if (ReactFeatureFlags.enableEagerInitializeMapBufferSoFile) {
if (ReactFeatureFlags.isMapBufferSerializationEnabled()) {
ReadableMapBufferSoLoader.staticInit();
}