From 49197411d886eb7673ca4cb5918a9ea2d7bb95d6 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Fri, 15 Sep 2023 17:37:58 -0700 Subject: [PATCH] Create FeatureFlag to gate Stable API for Turbo Module (#39479) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39479 The goal of this diff is to create a feature flag that will be used to enable/disable Stable API for Turbo Module. This featureflag will be used to experiment with the new API in fb4a changelog: [intenral] internal Reviewed By: arushikesarwani94 Differential Revision: D49212022 fbshipit-source-id: 4f4830f11ba18ad849dc8b35f4e178e938b03fc9 --- .../main/java/com/facebook/react/config/ReactFeatureFlags.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java index 4a71ca78d2501c..3a514917cc7cda 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java @@ -162,4 +162,7 @@ public class ReactFeatureFlags { /** When enabled, rawProps in Props will not include Yoga specific props. */ public static boolean excludeYogaFromRawProps = false; + + /** Enables Stable API for TurboModule (removal of ReactModule, ReactModuleInfoProvider). */ + public static boolean enableTurboModuleStableAPI = false; }