mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Introduce UseReactNativeNewArchitectureFeatureFlagDetector
Summary: In this diff I'm introducing a new lint error called UseReactNativeNewArchitectureFeatureFlagDetector to prevent usages of: ``` ReactNativeFeatureFlags.enableBridgelessArchitecture ReactNativeFeatureFlags.enableFabricRenderer ReactNativeFeatureFlags.useFabricInterop ReactNativeFeatureFlags.useTurboModuleInterop ReactNativeFeatureFlags.useTurboModules ``` in favor of: ``` ReactNativeNewArchitectureFeatureFlags.enableBridgelessArchitecture ReactNativeNewArchitectureFeatureFlags.enableFabricRenderer ReactNativeNewArchitectureFeatureFlags.useFabricInterop ReactNativeNewArchitectureFeatureFlags.useTurboModuleInterop ReactNativeNewArchitectureFeatureFlags.useTurboModules ``` changelog: [internal] internal Reviewed By: cortinico Differential Revision: D72028734 fbshipit-source-id: c9ca39133e3ce5e5f2d393e9b9ee1803b350bdad
This commit is contained in:
1 parent
9ad8f22d00
commit
767462a910
1 file changed
+11
+11
@@ -7,9 +7,20 @@
|
||||
|
||||
package com.facebook.react.internal.featureflags
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import com.facebook.infer.annotation.Assertions
|
||||
import com.facebook.react.common.build.ReactBuildConfig
|
||||
|
||||
/**
|
||||
* This class provides feature flags for the React Native New Architecture. It wraps the base
|
||||
* ReactNativeFeatureFlags with additional logic for strict mode. When strict mode is enabled (via
|
||||
* UNSTABLE_ENABLE_MINIFY_LEGACY_ARCHITECTURE), it enforces specific configurations and provides
|
||||
* assertions to ensure proper setup.
|
||||
*
|
||||
* This class suppress the lint UseReactNativeNewArchitectureFeatureFlagDetector as it is expected
|
||||
* to access ReactNativeFeatureFlags from this file.
|
||||
*/
|
||||
@SuppressLint("UseReactNativeNewArchitectureFeatureFlagDetector")
|
||||
public object ReactNativeNewArchitectureFeatureFlags {
|
||||
|
||||
@JvmStatic
|
||||
|
||||
Reference in new issue
Block a user