diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index 9dac0c2d58ade9..cd9c6bcec455e2 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -2025,9 +2025,9 @@ public final class com/facebook/react/common/network/OkHttpCallUtil { public static final fun cancelTag (Lokhttp3/OkHttpClient;Ljava/lang/Object;)V } -public class com/facebook/react/config/ReactFeatureFlags { +public final class com/facebook/react/config/ReactFeatureFlags { + public static final field INSTANCE Lcom/facebook/react/config/ReactFeatureFlags; public static field dispatchPointerEvents Z - public fun ()V } public final class com/facebook/react/defaults/DefaultComponentsRegistry { 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.kt similarity index 51% rename from packages/react-native/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java rename to packages/react-native/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.kt index 353ed2aebfd5fd..5c8073fb26ff37 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.kt @@ -5,22 +5,20 @@ * LICENSE file in the root directory of this source tree. */ -package com.facebook.react.config; +package com.facebook.react.config -import com.facebook.infer.annotation.Nullsafe; -import com.facebook.proguard.annotations.DoNotStripAny; +import com.facebook.proguard.annotations.DoNotStripAny +import kotlin.jvm.JvmField /** * Hi there, traveller! This configuration class is not meant to be used by end-users of RN. It * contains mainly flags for features that are either under active development and not ready for * public consumption, or for use in experiments. * - *

These values are safe defaults and should not require manual changes. + * These values are safe defaults and should not require manual changes. */ -@Nullsafe(Nullsafe.Mode.LOCAL) -@Deprecated(since = "Use com.facebook.react.internal.featureflags.ReactNativeFeatureFlags instead.") +@Deprecated("Use com.facebook.react.internal.featureflags.ReactNativeFeatureFlags instead.") @DoNotStripAny -public class ReactFeatureFlags { - - public static boolean dispatchPointerEvents = false; +public object ReactFeatureFlags { + @JvmField public var dispatchPointerEvents: Boolean = false }