From 8db233670f61c1f0282fb16dee67bfca803acd0f Mon Sep 17 00:00:00 2001 From: Kevin Gozali Date: Tue, 31 May 2022 18:12:30 -0700 Subject: [PATCH] Added bridgeless feature flag Summary: Adding a flag to prepare for the phase 3 of the new architecture. This is still work in progress, not usable yet. Changelog: [Internal] Reviewed By: RSNara Differential Revision: D36767843 fbshipit-source-id: 338d775681f2890461608b403749c3a7f05f84ff --- .../java/com/facebook/react/config/ReactFeatureFlags.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java b/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java index a57476df2023aa..b0d953a786866e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +++ b/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java @@ -31,6 +31,12 @@ public class ReactFeatureFlags { */ public static volatile boolean enableFabricRenderer = false; + /** + * Feature flag to enable the new bridgeless architecture. Note: Enabling this will force enable + * the following flags: `useTurboModules` & `enableFabricRenderer`. + */ + public static boolean enableBridgelessArchitecture = false; + /** * After TurboModules and Fabric are enabled, we need to ensure that the legacy NativeModule isn't * isn't used. So, turn this flag on to trigger warnings whenever the legacy NativeModule system