Remove enableAndroidAutoOffscreenCompositingForElevation feature flag

Summary:
The `enable_android_auto_offscreen_compositing_for_elevation_experiment` QE in `rn_arch_android` shipped via SLW: the launch GK `enable_android_auto_offscreen_comp_launch_dc29f128` is at 100% (Public group, 24h pass ratio 100%) and the experiment is at 0% allocation.

This removes the flag and makes the flag-on behavior unconditional: `ReactViewGroup.hasOverlappingRendering()` reports overlapping rendering whenever an elevated descendant is present, and `HasElevatedDescendantCache.invalidateAncestors()` always walks ancestors. The Facebook override reading `react_fabric.enable_android_auto_offscreen_compositing_for_elevation` is removed and the generated feature flag files are regenerated with `yarn featureflags --update`.

Resolves T288783166.

Reviewed By: javache

Differential Revision: D131063976

Pull Request resolved: https://github.com/react/react-native/pull/59947
This commit is contained in:
crazeface authored and GitHub committed 2026-11-13 09:54:14 +00:00
1 parent 6d587e8736
commit 728d49ef1d
23 files changed
+108 -264

No files matched your search

@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<61e45cda49df36384f8e5a8bfb4383bd>>
* @generated SignedSource<<c65f172e91f823049cf508cc70663c64>>
*/
/**
@@ -120,12 +120,6 @@ public object ReactNativeFeatureFlags {
@JvmStatic
public fun enableAccumulatedUpdatesInRawPropsAndroid(): Boolean = accessor.enableAccumulatedUpdatesInRawPropsAndroid()
/**
* When enabled, a View with reduced opacity that contains an elevated descendant is composited offscreen so the elevation shadow fades uniformly instead of rendering as banded per-primitive alpha.
*/
@JvmStatic
public fun enableAndroidAutoOffscreenCompositingForElevation(): Boolean = accessor.enableAndroidAutoOffscreenCompositingForElevation()
/**
* Enables various optimizations throughout the path of measuring text on Android.
*/
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<bebf813dbbb44aa0a3c5ef7390d728e7>>
* @generated SignedSource<<4bcfd7705680a00615bddc6ffeccfe4b>>
*/
/**
@@ -35,7 +35,6 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
private var disableViewPreallocationAndroidCache: Boolean? = null
private var enableAccessibilityOrderCache: Boolean? = null
private var enableAccumulatedUpdatesInRawPropsAndroidCache: Boolean? = null
private var enableAndroidAutoOffscreenCompositingForElevationCache: Boolean? = null
private var enableAndroidTextMeasurementOptimizationsCache: Boolean? = null
private var enableAsyncDiskCacheCheckInMultiSourceImageAndroidCache: Boolean? = null
private var enableBridgelessArchitectureCache: Boolean? = null
@@ -255,15 +254,6 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
return cached
}
override fun enableAndroidAutoOffscreenCompositingForElevation(): Boolean {
var cached = enableAndroidAutoOffscreenCompositingForElevationCache
if (cached == null) {
cached = ReactNativeFeatureFlagsCxxInterop.enableAndroidAutoOffscreenCompositingForElevation()
enableAndroidAutoOffscreenCompositingForElevationCache = cached
}
return cached
}
override fun enableAndroidTextMeasurementOptimizations(): Boolean {
var cached = enableAndroidTextMeasurementOptimizationsCache
if (cached == null) {
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<344b249380585d494460c5e17e73e06f>>
* @generated SignedSource<<f7a31d0435905a87a8ce08a517f9e17d>>
*/
/**
@@ -58,8 +58,6 @@ public object ReactNativeFeatureFlagsCxxInterop {
@DoNotStrip @JvmStatic public external fun enableAccumulatedUpdatesInRawPropsAndroid(): Boolean
@DoNotStrip @JvmStatic public external fun enableAndroidAutoOffscreenCompositingForElevation(): Boolean
@DoNotStrip @JvmStatic public external fun enableAndroidTextMeasurementOptimizations(): Boolean
@DoNotStrip @JvmStatic public external fun enableAsyncDiskCacheCheckInMultiSourceImageAndroid(): Boolean
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<cbf3f79d07f0a7e360cae6cbf3e944c2>>
* @generated SignedSource<<db85f9c22970c773cc95ab6bf72d9871>>
*/
/**
@@ -53,8 +53,6 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
override fun enableAccumulatedUpdatesInRawPropsAndroid(): Boolean = false
override fun enableAndroidAutoOffscreenCompositingForElevation(): Boolean = false
override fun enableAndroidTextMeasurementOptimizations(): Boolean = true
override fun enableAsyncDiskCacheCheckInMultiSourceImageAndroid(): Boolean = false
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<fe195f00b14e21b85f26c043014c1b01>>
* @generated SignedSource<<4e53ce712d5e472d8a9dfa673a108aa5>>
*/
/**
@@ -39,7 +39,6 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
private var disableViewPreallocationAndroidCache: Boolean? = null
private var enableAccessibilityOrderCache: Boolean? = null
private var enableAccumulatedUpdatesInRawPropsAndroidCache: Boolean? = null
private var enableAndroidAutoOffscreenCompositingForElevationCache: Boolean? = null
private var enableAndroidTextMeasurementOptimizationsCache: Boolean? = null
private var enableAsyncDiskCacheCheckInMultiSourceImageAndroidCache: Boolean? = null
private var enableBridgelessArchitectureCache: Boolean? = null
@@ -274,16 +273,6 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
return cached
}
override fun enableAndroidAutoOffscreenCompositingForElevation(): Boolean {
var cached = enableAndroidAutoOffscreenCompositingForElevationCache
if (cached == null) {
cached = currentProvider.enableAndroidAutoOffscreenCompositingForElevation()
accessedFeatureFlags.add("enableAndroidAutoOffscreenCompositingForElevation")
enableAndroidAutoOffscreenCompositingForElevationCache = cached
}
return cached
}
override fun enableAndroidTextMeasurementOptimizations(): Boolean {
var cached = enableAndroidTextMeasurementOptimizationsCache
if (cached == null) {
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<ee3f736a54539b92f30c4ad0fb832ab0>>
* @generated SignedSource<<dcfcca254ea381db5ac0cc2ea2a6a66b>>
*/
/**
@@ -53,8 +53,6 @@ public interface ReactNativeFeatureFlagsProvider {
@DoNotStrip public fun enableAccumulatedUpdatesInRawPropsAndroid(): Boolean
@DoNotStrip public fun enableAndroidAutoOffscreenCompositingForElevation(): Boolean
@DoNotStrip public fun enableAndroidTextMeasurementOptimizations(): Boolean
@DoNotStrip public fun enableAsyncDiskCacheCheckInMultiSourceImageAndroid(): Boolean
@@ -8,7 +8,6 @@
package com.facebook.react.uimanager
import android.view.ViewParent
import com.facebook.react.internal.featureflags.ReactNativeFeatureFlags
/**
* Implemented by views that cache whether their subtree contains a descendant with `elevation`, so
@@ -52,14 +51,10 @@ internal interface HasElevatedDescendantCache {
/**
* Marks the elevated-descendant cache stale on [start] and each ancestor, walking through any
* intervening non-implementing container. This is O(depth) of flag writes; the actual subtree
* scan happens once, lazily, at the next draw. A no-op unless the feature flag is enabled, so
* the flag-off path costs nothing.
* scan happens once, lazily, at the next draw.
*/
@JvmStatic
fun invalidateAncestors(start: ViewParent?) {
if (!ReactNativeFeatureFlags.enableAndroidAutoOffscreenCompositingForElevation()) {
return
}
var node: ViewParent? = start
while (node != null) {
val cache = node as? HasElevatedDescendantCache
@@ -330,8 +330,7 @@ public open class ReactViewGroup public constructor(context: Context?) :
* We override this to allow developers to determine whether they need offscreen alpha compositing
* or not. See the documentation of needsOffscreenAlphaCompositing in View.js.
*
* When [ReactNativeFeatureFlags.enableAndroidAutoOffscreenCompositingForElevation] is enabled we
* also report overlapping rendering for a view drawn with reduced alpha that contains a
* We also report overlapping rendering for a view drawn with reduced alpha that contains a
* descendant with elevation, so the framework composites the subtree offscreen before applying
* the alpha and the elevation shadow fades uniformly instead of rendering as banded per-primitive
* alpha (see https://github.com/facebook/react-native/issues/23090). We report this whenever an
@@ -349,8 +348,7 @@ public open class ReactViewGroup public constructor(context: Context?) :
// later, including native-driver opacity animations that set alpha directly on the RenderNode
// without re-recording, then composites through that layer and the shadow fades uniformly. A
// layer is only actually allocated when alpha < 1, so this costs nothing at full opacity.
return ReactNativeFeatureFlags.enableAndroidAutoOffscreenCompositingForElevation() &&
hasElevatedDescendant()
return hasElevatedDescendant()
}
internal fun hasElevatedDescendant(): Boolean =
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<abeca27da02154e1702b07403ab8a08f>>
* @generated SignedSource<<80dd5355f9f95d594f04d6b41fc785f5>>
*/
/**
@@ -129,12 +129,6 @@ class ReactNativeFeatureFlagsJavaProvider
return method(javaProvider_);
}
bool enableAndroidAutoOffscreenCompositingForElevation() override {
static const auto method =
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("enableAndroidAutoOffscreenCompositingForElevation");
return method(javaProvider_);
}
bool enableAndroidTextMeasurementOptimizations() override {
static const auto method =
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("enableAndroidTextMeasurementOptimizations");
@@ -712,11 +706,6 @@ bool JReactNativeFeatureFlagsCxxInterop::enableAccumulatedUpdatesInRawPropsAndro
return ReactNativeFeatureFlags::enableAccumulatedUpdatesInRawPropsAndroid();
}
bool JReactNativeFeatureFlagsCxxInterop::enableAndroidAutoOffscreenCompositingForElevation(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
return ReactNativeFeatureFlags::enableAndroidAutoOffscreenCompositingForElevation();
}
bool JReactNativeFeatureFlagsCxxInterop::enableAndroidTextMeasurementOptimizations(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
return ReactNativeFeatureFlags::enableAndroidTextMeasurementOptimizations();
@@ -1208,9 +1197,6 @@ void JReactNativeFeatureFlagsCxxInterop::registerNatives() {
makeNativeMethod(
"enableAccumulatedUpdatesInRawPropsAndroid",
JReactNativeFeatureFlagsCxxInterop::enableAccumulatedUpdatesInRawPropsAndroid),
makeNativeMethod(
"enableAndroidAutoOffscreenCompositingForElevation",
JReactNativeFeatureFlagsCxxInterop::enableAndroidAutoOffscreenCompositingForElevation),
makeNativeMethod(
"enableAndroidTextMeasurementOptimizations",
JReactNativeFeatureFlagsCxxInterop::enableAndroidTextMeasurementOptimizations),
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<4573a4a09291bdc6d00a958d3e54a94a>>
* @generated SignedSource<<5fcb0abec30cc84df7a627d008f6c92a>>
*/
/**
@@ -75,9 +75,6 @@ class JReactNativeFeatureFlagsCxxInterop
static bool enableAccumulatedUpdatesInRawPropsAndroid(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);
static bool enableAndroidAutoOffscreenCompositingForElevation(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);
static bool enableAndroidTextMeasurementOptimizations(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);
@@ -16,8 +16,6 @@ import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import com.facebook.react.R
import com.facebook.react.internal.featureflags.ReactNativeFeatureFlags
import com.facebook.react.internal.featureflags.ReactNativeFeatureFlagsDefaults
import com.facebook.react.internal.featureflags.ReactNativeFeatureFlagsForTests
import com.facebook.react.uimanager.HasElevatedDescendantCache
import org.assertj.core.api.Assertions.assertThat
@@ -98,8 +96,7 @@ class ReactViewGroupTest {
}
@Test
fun `auto offscreen compositing - true when flag on, alpha lt 1, and elevated descendant`() {
overrideAutoOffscreenFlag(true)
fun `auto offscreen compositing - true when alpha lt 1 and there is an elevated descendant`() {
val rvg = ReactViewGroup(context)
mount(rvg, elevatedChild())
rvg.alpha = 0.5f
@@ -111,7 +108,6 @@ class ReactViewGroupTest {
// Returning true at full opacity is what bakes the offscreen decision into the RenderNode, so a
// later alpha change -- including a native-driver opacity animation -- composites uniformly. No
// layer is actually allocated until alpha < 1, so this costs nothing while opaque.
overrideAutoOffscreenFlag(true)
val rvg = ReactViewGroup(context)
mount(rvg, elevatedChild())
rvg.alpha = 1f
@@ -120,25 +116,14 @@ class ReactViewGroupTest {
@Test
fun `auto offscreen compositing - false when there is no elevated descendant`() {
overrideAutoOffscreenFlag(true)
val rvg = ReactViewGroup(context)
mount(rvg, View(context))
rvg.alpha = 0.5f
assertThat(rvg.hasOverlappingRendering()).isFalse()
}
@Test
fun `auto offscreen compositing - false when flag is off`() {
overrideAutoOffscreenFlag(false)
val rvg = ReactViewGroup(context)
mount(rvg, elevatedChild())
rvg.alpha = 0.5f
assertThat(rvg.hasOverlappingRendering()).isFalse()
}
@Test
fun `auto offscreen compositing - detects a nested elevated descendant`() {
overrideAutoOffscreenFlag(true)
val rvg = ReactViewGroup(context)
val inner = ReactViewGroup(context)
inner.addView(elevatedChild())
@@ -149,7 +134,6 @@ class ReactViewGroupTest {
@Test
fun `auto offscreen compositing - detects an elevated view inside a non-ReactViewGroup container`() {
overrideAutoOffscreenFlag(true)
val rvg = ReactViewGroup(context)
val container = FrameLayout(context)
container.addView(elevatedChild())
@@ -160,7 +144,6 @@ class ReactViewGroupTest {
@Test
fun `auto offscreen compositing - invalidation bubbles through a non-ReactViewGroup ancestor`() {
overrideAutoOffscreenFlag(true)
val rvg = ReactViewGroup(context)
val container = FrameLayout(context)
val inner = ReactViewGroup(context)
@@ -177,7 +160,6 @@ class ReactViewGroupTest {
@Test
fun `auto offscreen compositing - reflects an elevated child added after a prior query`() {
overrideAutoOffscreenFlag(true)
val rvg = ReactViewGroup(context)
rvg.alpha = 0.5f
assertThat(rvg.hasOverlappingRendering()).isFalse()
@@ -187,7 +169,6 @@ class ReactViewGroupTest {
@Test
fun `auto offscreen compositing - false once the elevated descendant is removed`() {
overrideAutoOffscreenFlag(true)
val rvg = ReactViewGroup(context)
val child = elevatedChild()
mount(rvg, child)
@@ -198,7 +179,7 @@ class ReactViewGroupTest {
}
@Test
fun `needsOffscreenAlphaCompositing forces overlapping rendering regardless of flag`() {
fun `needsOffscreenAlphaCompositing forces overlapping rendering`() {
val rvg = ReactViewGroup(context)
rvg.setNeedsOffscreenAlphaCompositing(true)
assertThat(rvg.hasOverlappingRendering()).isTrue()
@@ -206,7 +187,6 @@ class ReactViewGroupTest {
@Test
fun `auto offscreen compositing - recycling a child invalidates the parent`() {
overrideAutoOffscreenFlag(true)
val rvg = ReactViewGroup(context)
val inner = ReactViewGroup(context)
inner.addView(elevatedChild())
@@ -219,7 +199,6 @@ class ReactViewGroupTest {
@Test
fun `auto offscreen compositing - counts an elevated descendant that is currently clipped out`() {
overrideAutoOffscreenFlag(true)
val rvg = ReactViewGroup(context)
rvg.left = 0
rvg.right = 100
@@ -246,7 +225,6 @@ class ReactViewGroupTest {
@Test
fun `auto offscreen compositing - invalidateAncestors refreshes an outer ReactViewGroup across a nested one`() {
overrideAutoOffscreenFlag(true)
val outer = ReactViewGroup(context)
val inner = ReactViewGroup(context)
mount(outer, inner)
@@ -261,7 +239,6 @@ class ReactViewGroupTest {
@Test
fun `auto offscreen compositing - invalidateElevatedDescendantCache reports whether it changed state`() {
overrideAutoOffscreenFlag(true)
val rvg = ReactViewGroup(context)
rvg.addView(elevatedChild())
// Prime the cache.
@@ -274,7 +251,6 @@ class ReactViewGroupTest {
@Test
fun `auto offscreen compositing - invalidateAncestors short-circuits at an already-stale node`() {
overrideAutoOffscreenFlag(true)
val outer = ReactViewGroup(context)
val inner = ReactViewGroup(context)
mount(outer, elevatedChild()) // direct elevated child, scanned first
@@ -301,14 +277,6 @@ class ReactViewGroupTest {
HasElevatedDescendantCache.invalidateAncestors(parent)
}
private fun overrideAutoOffscreenFlag(enabled: Boolean) {
ReactNativeFeatureFlags.override(
object : ReactNativeFeatureFlagsDefaults() {
override fun enableAndroidAutoOffscreenCompositingForElevation(): Boolean = enabled
},
)
}
private fun elevatedChild(): View = View(context).apply { elevation = 10f }
}
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<7f3861dc19829017df54ce8408ab1a9c>>
* @generated SignedSource<<9b64fa4c8329098d9c2977ad2a162fbf>>
*/
/**
@@ -86,10 +86,6 @@ bool ReactNativeFeatureFlags::enableAccumulatedUpdatesInRawPropsAndroid() {
return getAccessor().enableAccumulatedUpdatesInRawPropsAndroid();
}
bool ReactNativeFeatureFlags::enableAndroidAutoOffscreenCompositingForElevation() {
return getAccessor().enableAndroidAutoOffscreenCompositingForElevation();
}
bool ReactNativeFeatureFlags::enableAndroidTextMeasurementOptimizations() {
return getAccessor().enableAndroidTextMeasurementOptimizations();
}
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<8052aa74d815d8a13e52eb2f69169dae>>
* @generated SignedSource<<0a8759cd09aa452417aaa3720da346ae>>
*/
/**
@@ -116,11 +116,6 @@ class ReactNativeFeatureFlags {
*/
RN_EXPORT static bool enableAccumulatedUpdatesInRawPropsAndroid();
/**
* When enabled, a View with reduced opacity that contains an elevated descendant is composited offscreen so the elevation shadow fades uniformly instead of rendering as banded per-primitive alpha.
*/
RN_EXPORT static bool enableAndroidAutoOffscreenCompositingForElevation();
/**
* Enables various optimizations throughout the path of measuring text on Android.
*/
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<9eb27f9f6174e04e5e3a4410a842b531>>
* @generated SignedSource<<91748c760bda190e9c2f328150d9eb11>>
*/
/**
@@ -299,24 +299,6 @@ bool ReactNativeFeatureFlagsAccessor::enableAccumulatedUpdatesInRawPropsAndroid(
return flagValue.value();
}
bool ReactNativeFeatureFlagsAccessor::enableAndroidAutoOffscreenCompositingForElevation() {
auto flagValue = enableAndroidAutoOffscreenCompositingForElevation_.load();
if (!flagValue.has_value()) {
// This block is not exclusive but it is not necessary.
// If multiple threads try to initialize the feature flag, we would only
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(15, "enableAndroidAutoOffscreenCompositingForElevation");
flagValue = currentProvider_->enableAndroidAutoOffscreenCompositingForElevation();
enableAndroidAutoOffscreenCompositingForElevation_ = flagValue;
}
return flagValue.value();
}
bool ReactNativeFeatureFlagsAccessor::enableAndroidTextMeasurementOptimizations() {
auto flagValue = enableAndroidTextMeasurementOptimizations_.load();
@@ -326,7 +308,7 @@ bool ReactNativeFeatureFlagsAccessor::enableAndroidTextMeasurementOptimizations(
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(16, "enableAndroidTextMeasurementOptimizations");
markFlagAsAccessed(15, "enableAndroidTextMeasurementOptimizations");
flagValue = currentProvider_->enableAndroidTextMeasurementOptimizations();
enableAndroidTextMeasurementOptimizations_ = flagValue;
@@ -344,7 +326,7 @@ bool ReactNativeFeatureFlagsAccessor::enableAsyncDiskCacheCheckInMultiSourceImag
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(17, "enableAsyncDiskCacheCheckInMultiSourceImageAndroid");
markFlagAsAccessed(16, "enableAsyncDiskCacheCheckInMultiSourceImageAndroid");
flagValue = currentProvider_->enableAsyncDiskCacheCheckInMultiSourceImageAndroid();
enableAsyncDiskCacheCheckInMultiSourceImageAndroid_ = flagValue;
@@ -362,7 +344,7 @@ bool ReactNativeFeatureFlagsAccessor::enableBridgelessArchitecture() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(18, "enableBridgelessArchitecture");
markFlagAsAccessed(17, "enableBridgelessArchitecture");
flagValue = currentProvider_->enableBridgelessArchitecture();
enableBridgelessArchitecture_ = flagValue;
@@ -380,7 +362,7 @@ bool ReactNativeFeatureFlagsAccessor::enableCppPropsIteratorSetter() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(19, "enableCppPropsIteratorSetter");
markFlagAsAccessed(18, "enableCppPropsIteratorSetter");
flagValue = currentProvider_->enableCppPropsIteratorSetter();
enableCppPropsIteratorSetter_ = flagValue;
@@ -398,7 +380,7 @@ bool ReactNativeFeatureFlagsAccessor::enableCustomFocusSearchOnClippedElementsAn
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(20, "enableCustomFocusSearchOnClippedElementsAndroid");
markFlagAsAccessed(19, "enableCustomFocusSearchOnClippedElementsAndroid");
flagValue = currentProvider_->enableCustomFocusSearchOnClippedElementsAndroid();
enableCustomFocusSearchOnClippedElementsAndroid_ = flagValue;
@@ -416,7 +398,7 @@ bool ReactNativeFeatureFlagsAccessor::enableDestroyShadowTreeRevisionAsync() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(21, "enableDestroyShadowTreeRevisionAsync");
markFlagAsAccessed(20, "enableDestroyShadowTreeRevisionAsync");
flagValue = currentProvider_->enableDestroyShadowTreeRevisionAsync();
enableDestroyShadowTreeRevisionAsync_ = flagValue;
@@ -434,7 +416,7 @@ bool ReactNativeFeatureFlagsAccessor::enableDoubleMeasurementFixAndroid() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(22, "enableDoubleMeasurementFixAndroid");
markFlagAsAccessed(21, "enableDoubleMeasurementFixAndroid");
flagValue = currentProvider_->enableDoubleMeasurementFixAndroid();
enableDoubleMeasurementFixAndroid_ = flagValue;
@@ -452,7 +434,7 @@ bool ReactNativeFeatureFlagsAccessor::enableEagerRootViewAttachment() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(23, "enableEagerRootViewAttachment");
markFlagAsAccessed(22, "enableEagerRootViewAttachment");
flagValue = currentProvider_->enableEagerRootViewAttachment();
enableEagerRootViewAttachment_ = flagValue;
@@ -470,7 +452,7 @@ bool ReactNativeFeatureFlagsAccessor::enableExclusivePropsUpdateAndroid() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(24, "enableExclusivePropsUpdateAndroid");
markFlagAsAccessed(23, "enableExclusivePropsUpdateAndroid");
flagValue = currentProvider_->enableExclusivePropsUpdateAndroid();
enableExclusivePropsUpdateAndroid_ = flagValue;
@@ -488,7 +470,7 @@ bool ReactNativeFeatureFlagsAccessor::enableFabricCommitBranching() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(25, "enableFabricCommitBranching");
markFlagAsAccessed(24, "enableFabricCommitBranching");
flagValue = currentProvider_->enableFabricCommitBranching();
enableFabricCommitBranching_ = flagValue;
@@ -506,7 +488,7 @@ bool ReactNativeFeatureFlagsAccessor::enableFabricCommitBranchingMergeOnMainThre
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(26, "enableFabricCommitBranchingMergeOnMainThread");
markFlagAsAccessed(25, "enableFabricCommitBranchingMergeOnMainThread");
flagValue = currentProvider_->enableFabricCommitBranchingMergeOnMainThread();
enableFabricCommitBranchingMergeOnMainThread_ = flagValue;
@@ -524,7 +506,7 @@ bool ReactNativeFeatureFlagsAccessor::enableFabricLogs() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(27, "enableFabricLogs");
markFlagAsAccessed(26, "enableFabricLogs");
flagValue = currentProvider_->enableFabricLogs();
enableFabricLogs_ = flagValue;
@@ -542,7 +524,7 @@ bool ReactNativeFeatureFlagsAccessor::enableFlexboxAutoMinSizeInStrictMode() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(28, "enableFlexboxAutoMinSizeInStrictMode");
markFlagAsAccessed(27, "enableFlexboxAutoMinSizeInStrictMode");
flagValue = currentProvider_->enableFlexboxAutoMinSizeInStrictMode();
enableFlexboxAutoMinSizeInStrictMode_ = flagValue;
@@ -560,7 +542,7 @@ bool ReactNativeFeatureFlagsAccessor::enableFollowUpMountItemDispatchAndroid() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(29, "enableFollowUpMountItemDispatchAndroid");
markFlagAsAccessed(28, "enableFollowUpMountItemDispatchAndroid");
flagValue = currentProvider_->enableFollowUpMountItemDispatchAndroid();
enableFollowUpMountItemDispatchAndroid_ = flagValue;
@@ -578,7 +560,7 @@ bool ReactNativeFeatureFlagsAccessor::enableIOSCompressedTextFrameAdjustment() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(30, "enableIOSCompressedTextFrameAdjustment");
markFlagAsAccessed(29, "enableIOSCompressedTextFrameAdjustment");
flagValue = currentProvider_->enableIOSCompressedTextFrameAdjustment();
enableIOSCompressedTextFrameAdjustment_ = flagValue;
@@ -596,7 +578,7 @@ bool ReactNativeFeatureFlagsAccessor::enableIOSTextBaselineOffsetPerLine() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(31, "enableIOSTextBaselineOffsetPerLine");
markFlagAsAccessed(30, "enableIOSTextBaselineOffsetPerLine");
flagValue = currentProvider_->enableIOSTextBaselineOffsetPerLine();
enableIOSTextBaselineOffsetPerLine_ = flagValue;
@@ -614,7 +596,7 @@ bool ReactNativeFeatureFlagsAccessor::enableIOSViewClipToPaddingBox() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(32, "enableIOSViewClipToPaddingBox");
markFlagAsAccessed(31, "enableIOSViewClipToPaddingBox");
flagValue = currentProvider_->enableIOSViewClipToPaddingBox();
enableIOSViewClipToPaddingBox_ = flagValue;
@@ -632,7 +614,7 @@ bool ReactNativeFeatureFlagsAccessor::enableImagePrefetchingAndroid() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(33, "enableImagePrefetchingAndroid");
markFlagAsAccessed(32, "enableImagePrefetchingAndroid");
flagValue = currentProvider_->enableImagePrefetchingAndroid();
enableImagePrefetchingAndroid_ = flagValue;
@@ -650,7 +632,7 @@ bool ReactNativeFeatureFlagsAccessor::enableImageTransparentTintColor() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(34, "enableImageTransparentTintColor");
markFlagAsAccessed(33, "enableImageTransparentTintColor");
flagValue = currentProvider_->enableImageTransparentTintColor();
enableImageTransparentTintColor_ = flagValue;
@@ -668,7 +650,7 @@ bool ReactNativeFeatureFlagsAccessor::enableImmediateUpdateModeForContentOffsetC
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(35, "enableImmediateUpdateModeForContentOffsetChanges");
markFlagAsAccessed(34, "enableImmediateUpdateModeForContentOffsetChanges");
flagValue = currentProvider_->enableImmediateUpdateModeForContentOffsetChanges();
enableImmediateUpdateModeForContentOffsetChanges_ = flagValue;
@@ -686,7 +668,7 @@ bool ReactNativeFeatureFlagsAccessor::enableImperativeEvents() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(36, "enableImperativeEvents");
markFlagAsAccessed(35, "enableImperativeEvents");
flagValue = currentProvider_->enableImperativeEvents();
enableImperativeEvents_ = flagValue;
@@ -704,7 +686,7 @@ bool ReactNativeFeatureFlagsAccessor::enableImperativeFocus() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(37, "enableImperativeFocus");
markFlagAsAccessed(36, "enableImperativeFocus");
flagValue = currentProvider_->enableImperativeFocus();
enableImperativeFocus_ = flagValue;
@@ -722,7 +704,7 @@ bool ReactNativeFeatureFlagsAccessor::enableInteractableResponderViews() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(38, "enableInteractableResponderViews");
markFlagAsAccessed(37, "enableInteractableResponderViews");
flagValue = currentProvider_->enableInteractableResponderViews();
enableInteractableResponderViews_ = flagValue;
@@ -740,7 +722,7 @@ bool ReactNativeFeatureFlagsAccessor::enableInteropViewManagerClassLookUpOptimiz
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(39, "enableInteropViewManagerClassLookUpOptimizationIOS");
markFlagAsAccessed(38, "enableInteropViewManagerClassLookUpOptimizationIOS");
flagValue = currentProvider_->enableInteropViewManagerClassLookUpOptimizationIOS();
enableInteropViewManagerClassLookUpOptimizationIOS_ = flagValue;
@@ -758,7 +740,7 @@ bool ReactNativeFeatureFlagsAccessor::enableIntersectionObserverByDefault() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(40, "enableIntersectionObserverByDefault");
markFlagAsAccessed(39, "enableIntersectionObserverByDefault");
flagValue = currentProvider_->enableIntersectionObserverByDefault();
enableIntersectionObserverByDefault_ = flagValue;
@@ -776,7 +758,7 @@ bool ReactNativeFeatureFlagsAccessor::enableKeyEvents() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(41, "enableKeyEvents");
markFlagAsAccessed(40, "enableKeyEvents");
flagValue = currentProvider_->enableKeyEvents();
enableKeyEvents_ = flagValue;
@@ -794,7 +776,7 @@ bool ReactNativeFeatureFlagsAccessor::enableLayoutAnimationsOnAndroid() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(42, "enableLayoutAnimationsOnAndroid");
markFlagAsAccessed(41, "enableLayoutAnimationsOnAndroid");
flagValue = currentProvider_->enableLayoutAnimationsOnAndroid();
enableLayoutAnimationsOnAndroid_ = flagValue;
@@ -812,7 +794,7 @@ bool ReactNativeFeatureFlagsAccessor::enableLayoutAnimationsOnIOS() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(43, "enableLayoutAnimationsOnIOS");
markFlagAsAccessed(42, "enableLayoutAnimationsOnIOS");
flagValue = currentProvider_->enableLayoutAnimationsOnIOS();
enableLayoutAnimationsOnIOS_ = flagValue;
@@ -830,7 +812,7 @@ bool ReactNativeFeatureFlagsAccessor::enableModuleArgumentNSNullConversionIOS()
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(44, "enableModuleArgumentNSNullConversionIOS");
markFlagAsAccessed(43, "enableModuleArgumentNSNullConversionIOS");
flagValue = currentProvider_->enableModuleArgumentNSNullConversionIOS();
enableModuleArgumentNSNullConversionIOS_ = flagValue;
@@ -848,7 +830,7 @@ bool ReactNativeFeatureFlagsAccessor::enableMountingCoordinatorPullModelAndroid(
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(45, "enableMountingCoordinatorPullModelAndroid");
markFlagAsAccessed(44, "enableMountingCoordinatorPullModelAndroid");
flagValue = currentProvider_->enableMountingCoordinatorPullModelAndroid();
enableMountingCoordinatorPullModelAndroid_ = flagValue;
@@ -866,7 +848,7 @@ bool ReactNativeFeatureFlagsAccessor::enableMutationObserverByDefault() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(46, "enableMutationObserverByDefault");
markFlagAsAccessed(45, "enableMutationObserverByDefault");
flagValue = currentProvider_->enableMutationObserverByDefault();
enableMutationObserverByDefault_ = flagValue;
@@ -884,7 +866,7 @@ bool ReactNativeFeatureFlagsAccessor::enableNativeCSSParsing() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(47, "enableNativeCSSParsing");
markFlagAsAccessed(46, "enableNativeCSSParsing");
flagValue = currentProvider_->enableNativeCSSParsing();
enableNativeCSSParsing_ = flagValue;
@@ -902,7 +884,7 @@ bool ReactNativeFeatureFlagsAccessor::enablePreallocatedPropsDiffOnInsertAndroid
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(48, "enablePreallocatedPropsDiffOnInsertAndroid");
markFlagAsAccessed(47, "enablePreallocatedPropsDiffOnInsertAndroid");
flagValue = currentProvider_->enablePreallocatedPropsDiffOnInsertAndroid();
enablePreallocatedPropsDiffOnInsertAndroid_ = flagValue;
@@ -920,7 +902,7 @@ bool ReactNativeFeatureFlagsAccessor::enablePreparedTextLayout() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(49, "enablePreparedTextLayout");
markFlagAsAccessed(48, "enablePreparedTextLayout");
flagValue = currentProvider_->enablePreparedTextLayout();
enablePreparedTextLayout_ = flagValue;
@@ -938,7 +920,7 @@ bool ReactNativeFeatureFlagsAccessor::enablePropsUpdateReconciliationAndroid() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(50, "enablePropsUpdateReconciliationAndroid");
markFlagAsAccessed(49, "enablePropsUpdateReconciliationAndroid");
flagValue = currentProvider_->enablePropsUpdateReconciliationAndroid();
enablePropsUpdateReconciliationAndroid_ = flagValue;
@@ -956,7 +938,7 @@ bool ReactNativeFeatureFlagsAccessor::enableResizeObserverByDefault() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(51, "enableResizeObserverByDefault");
markFlagAsAccessed(50, "enableResizeObserverByDefault");
flagValue = currentProvider_->enableResizeObserverByDefault();
enableResizeObserverByDefault_ = flagValue;
@@ -974,7 +956,7 @@ bool ReactNativeFeatureFlagsAccessor::enableSwiftUIBasedFilters() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(52, "enableSwiftUIBasedFilters");
markFlagAsAccessed(51, "enableSwiftUIBasedFilters");
flagValue = currentProvider_->enableSwiftUIBasedFilters();
enableSwiftUIBasedFilters_ = flagValue;
@@ -992,7 +974,7 @@ bool ReactNativeFeatureFlagsAccessor::enableViewCulling() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(53, "enableViewCulling");
markFlagAsAccessed(52, "enableViewCulling");
flagValue = currentProvider_->enableViewCulling();
enableViewCulling_ = flagValue;
@@ -1010,7 +992,7 @@ bool ReactNativeFeatureFlagsAccessor::enableViewRecycling() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(54, "enableViewRecycling");
markFlagAsAccessed(53, "enableViewRecycling");
flagValue = currentProvider_->enableViewRecycling();
enableViewRecycling_ = flagValue;
@@ -1028,7 +1010,7 @@ bool ReactNativeFeatureFlagsAccessor::enableViewRecyclingForImage() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(55, "enableViewRecyclingForImage");
markFlagAsAccessed(54, "enableViewRecyclingForImage");
flagValue = currentProvider_->enableViewRecyclingForImage();
enableViewRecyclingForImage_ = flagValue;
@@ -1046,7 +1028,7 @@ bool ReactNativeFeatureFlagsAccessor::enableViewRecyclingForScrollView() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(56, "enableViewRecyclingForScrollView");
markFlagAsAccessed(55, "enableViewRecyclingForScrollView");
flagValue = currentProvider_->enableViewRecyclingForScrollView();
enableViewRecyclingForScrollView_ = flagValue;
@@ -1064,7 +1046,7 @@ bool ReactNativeFeatureFlagsAccessor::enableViewRecyclingForText() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(57, "enableViewRecyclingForText");
markFlagAsAccessed(56, "enableViewRecyclingForText");
flagValue = currentProvider_->enableViewRecyclingForText();
enableViewRecyclingForText_ = flagValue;
@@ -1082,7 +1064,7 @@ bool ReactNativeFeatureFlagsAccessor::enableViewRecyclingForView() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(58, "enableViewRecyclingForView");
markFlagAsAccessed(57, "enableViewRecyclingForView");
flagValue = currentProvider_->enableViewRecyclingForView();
enableViewRecyclingForView_ = flagValue;
@@ -1100,7 +1082,7 @@ bool ReactNativeFeatureFlagsAccessor::enableVirtualViewContainerStateExperimenta
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(59, "enableVirtualViewContainerStateExperimental");
markFlagAsAccessed(58, "enableVirtualViewContainerStateExperimental");
flagValue = currentProvider_->enableVirtualViewContainerStateExperimental();
enableVirtualViewContainerStateExperimental_ = flagValue;
@@ -1118,7 +1100,7 @@ bool ReactNativeFeatureFlagsAccessor::fixBorderlessRippleAndroid() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(60, "fixBorderlessRippleAndroid");
markFlagAsAccessed(59, "fixBorderlessRippleAndroid");
flagValue = currentProvider_->fixBorderlessRippleAndroid();
fixBorderlessRippleAndroid_ = flagValue;
@@ -1136,7 +1118,7 @@ bool ReactNativeFeatureFlagsAccessor::fixMappingOfEventPrioritiesBetweenFabricAn
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(61, "fixMappingOfEventPrioritiesBetweenFabricAndReact");
markFlagAsAccessed(60, "fixMappingOfEventPrioritiesBetweenFabricAndReact");
flagValue = currentProvider_->fixMappingOfEventPrioritiesBetweenFabricAndReact();
fixMappingOfEventPrioritiesBetweenFabricAndReact_ = flagValue;
@@ -1154,7 +1136,7 @@ bool ReactNativeFeatureFlagsAccessor::fixTextInlineViewLineHeight() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(62, "fixTextInlineViewLineHeight");
markFlagAsAccessed(61, "fixTextInlineViewLineHeight");
flagValue = currentProvider_->fixTextInlineViewLineHeight();
fixTextInlineViewLineHeight_ = flagValue;
@@ -1172,7 +1154,7 @@ bool ReactNativeFeatureFlagsAccessor::fixTextLayoutOnPixelDensityChange() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(63, "fixTextLayoutOnPixelDensityChange");
markFlagAsAccessed(62, "fixTextLayoutOnPixelDensityChange");
flagValue = currentProvider_->fixTextLayoutOnPixelDensityChange();
fixTextLayoutOnPixelDensityChange_ = flagValue;
@@ -1190,7 +1172,7 @@ bool ReactNativeFeatureFlagsAccessor::fixYogaFlexBasisFitContentInMainAxis() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(64, "fixYogaFlexBasisFitContentInMainAxis");
markFlagAsAccessed(63, "fixYogaFlexBasisFitContentInMainAxis");
flagValue = currentProvider_->fixYogaFlexBasisFitContentInMainAxis();
fixYogaFlexBasisFitContentInMainAxis_ = flagValue;
@@ -1208,7 +1190,7 @@ bool ReactNativeFeatureFlagsAccessor::fuseboxAssertSingleHostState() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(65, "fuseboxAssertSingleHostState");
markFlagAsAccessed(64, "fuseboxAssertSingleHostState");
flagValue = currentProvider_->fuseboxAssertSingleHostState();
fuseboxAssertSingleHostState_ = flagValue;
@@ -1226,7 +1208,7 @@ bool ReactNativeFeatureFlagsAccessor::fuseboxEnabledRelease() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(66, "fuseboxEnabledRelease");
markFlagAsAccessed(65, "fuseboxEnabledRelease");
flagValue = currentProvider_->fuseboxEnabledRelease();
fuseboxEnabledRelease_ = flagValue;
@@ -1244,7 +1226,7 @@ bool ReactNativeFeatureFlagsAccessor::fuseboxFrameRecordingEnabled() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(67, "fuseboxFrameRecordingEnabled");
markFlagAsAccessed(66, "fuseboxFrameRecordingEnabled");
flagValue = currentProvider_->fuseboxFrameRecordingEnabled();
fuseboxFrameRecordingEnabled_ = flagValue;
@@ -1262,7 +1244,7 @@ bool ReactNativeFeatureFlagsAccessor::fuseboxScreenshotCaptureEnabled() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(68, "fuseboxScreenshotCaptureEnabled");
markFlagAsAccessed(67, "fuseboxScreenshotCaptureEnabled");
flagValue = currentProvider_->fuseboxScreenshotCaptureEnabled();
fuseboxScreenshotCaptureEnabled_ = flagValue;
@@ -1280,7 +1262,7 @@ bool ReactNativeFeatureFlagsAccessor::fuseboxWebSocketEventsEnabled() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(69, "fuseboxWebSocketEventsEnabled");
markFlagAsAccessed(68, "fuseboxWebSocketEventsEnabled");
flagValue = currentProvider_->fuseboxWebSocketEventsEnabled();
fuseboxWebSocketEventsEnabled_ = flagValue;
@@ -1298,7 +1280,7 @@ bool ReactNativeFeatureFlagsAccessor::keepTimersRunningWhileHostPausedAndroid()
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(70, "keepTimersRunningWhileHostPausedAndroid");
markFlagAsAccessed(69, "keepTimersRunningWhileHostPausedAndroid");
flagValue = currentProvider_->keepTimersRunningWhileHostPausedAndroid();
keepTimersRunningWhileHostPausedAndroid_ = flagValue;
@@ -1316,7 +1298,7 @@ bool ReactNativeFeatureFlagsAccessor::optimizedAnimatedPropUpdates() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(71, "optimizedAnimatedPropUpdates");
markFlagAsAccessed(70, "optimizedAnimatedPropUpdates");
flagValue = currentProvider_->optimizedAnimatedPropUpdates();
optimizedAnimatedPropUpdates_ = flagValue;
@@ -1334,7 +1316,7 @@ bool ReactNativeFeatureFlagsAccessor::overrideBySynchronousMountPropsAtMountingA
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(72, "overrideBySynchronousMountPropsAtMountingAndroid");
markFlagAsAccessed(71, "overrideBySynchronousMountPropsAtMountingAndroid");
flagValue = currentProvider_->overrideBySynchronousMountPropsAtMountingAndroid();
overrideBySynchronousMountPropsAtMountingAndroid_ = flagValue;
@@ -1352,7 +1334,7 @@ bool ReactNativeFeatureFlagsAccessor::perfIssuesEnabled() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(73, "perfIssuesEnabled");
markFlagAsAccessed(72, "perfIssuesEnabled");
flagValue = currentProvider_->perfIssuesEnabled();
perfIssuesEnabled_ = flagValue;
@@ -1370,7 +1352,7 @@ bool ReactNativeFeatureFlagsAccessor::perfMonitorV2Enabled() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(74, "perfMonitorV2Enabled");
markFlagAsAccessed(73, "perfMonitorV2Enabled");
flagValue = currentProvider_->perfMonitorV2Enabled();
perfMonitorV2Enabled_ = flagValue;
@@ -1388,7 +1370,7 @@ double ReactNativeFeatureFlagsAccessor::preparedTextCacheSize() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(75, "preparedTextCacheSize");
markFlagAsAccessed(74, "preparedTextCacheSize");
flagValue = currentProvider_->preparedTextCacheSize();
preparedTextCacheSize_ = flagValue;
@@ -1406,7 +1388,7 @@ bool ReactNativeFeatureFlagsAccessor::preventShadowTreeCommitExhaustion() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(76, "preventShadowTreeCommitExhaustion");
markFlagAsAccessed(75, "preventShadowTreeCommitExhaustion");
flagValue = currentProvider_->preventShadowTreeCommitExhaustion();
preventShadowTreeCommitExhaustion_ = flagValue;
@@ -1424,7 +1406,7 @@ bool ReactNativeFeatureFlagsAccessor::redBoxV2Android() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(77, "redBoxV2Android");
markFlagAsAccessed(76, "redBoxV2Android");
flagValue = currentProvider_->redBoxV2Android();
redBoxV2Android_ = flagValue;
@@ -1442,7 +1424,7 @@ bool ReactNativeFeatureFlagsAccessor::redBoxV2IOS() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(78, "redBoxV2IOS");
markFlagAsAccessed(77, "redBoxV2IOS");
flagValue = currentProvider_->redBoxV2IOS();
redBoxV2IOS_ = flagValue;
@@ -1460,7 +1442,7 @@ bool ReactNativeFeatureFlagsAccessor::shouldPressibilityUseW3CPointerEventsForHo
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(79, "shouldPressibilityUseW3CPointerEventsForHover");
markFlagAsAccessed(78, "shouldPressibilityUseW3CPointerEventsForHover");
flagValue = currentProvider_->shouldPressibilityUseW3CPointerEventsForHover();
shouldPressibilityUseW3CPointerEventsForHover_ = flagValue;
@@ -1478,7 +1460,7 @@ bool ReactNativeFeatureFlagsAccessor::shouldTriggerResponderTransferOnScrollAndr
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(80, "shouldTriggerResponderTransferOnScrollAndroid");
markFlagAsAccessed(79, "shouldTriggerResponderTransferOnScrollAndroid");
flagValue = currentProvider_->shouldTriggerResponderTransferOnScrollAndroid();
shouldTriggerResponderTransferOnScrollAndroid_ = flagValue;
@@ -1496,7 +1478,7 @@ bool ReactNativeFeatureFlagsAccessor::skipActivityIdentityAssertionOnHostPause()
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(81, "skipActivityIdentityAssertionOnHostPause");
markFlagAsAccessed(80, "skipActivityIdentityAssertionOnHostPause");
flagValue = currentProvider_->skipActivityIdentityAssertionOnHostPause();
skipActivityIdentityAssertionOnHostPause_ = flagValue;
@@ -1514,7 +1496,7 @@ bool ReactNativeFeatureFlagsAccessor::skipUnchangedChildrenInDifferentiator() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(82, "skipUnchangedChildrenInDifferentiator");
markFlagAsAccessed(81, "skipUnchangedChildrenInDifferentiator");
flagValue = currentProvider_->skipUnchangedChildrenInDifferentiator();
skipUnchangedChildrenInDifferentiator_ = flagValue;
@@ -1532,7 +1514,7 @@ bool ReactNativeFeatureFlagsAccessor::syncAndroidClipBoundsWithOverflow() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(83, "syncAndroidClipBoundsWithOverflow");
markFlagAsAccessed(82, "syncAndroidClipBoundsWithOverflow");
flagValue = currentProvider_->syncAndroidClipBoundsWithOverflow();
syncAndroidClipBoundsWithOverflow_ = flagValue;
@@ -1550,7 +1532,7 @@ bool ReactNativeFeatureFlagsAccessor::traceTurboModulePromiseRejectionsOnAndroid
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(84, "traceTurboModulePromiseRejectionsOnAndroid");
markFlagAsAccessed(83, "traceTurboModulePromiseRejectionsOnAndroid");
flagValue = currentProvider_->traceTurboModulePromiseRejectionsOnAndroid();
traceTurboModulePromiseRejectionsOnAndroid_ = flagValue;
@@ -1568,7 +1550,7 @@ bool ReactNativeFeatureFlagsAccessor::updateRuntimeShadowNodeReferencesOnCommit(
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(85, "updateRuntimeShadowNodeReferencesOnCommit");
markFlagAsAccessed(84, "updateRuntimeShadowNodeReferencesOnCommit");
flagValue = currentProvider_->updateRuntimeShadowNodeReferencesOnCommit();
updateRuntimeShadowNodeReferencesOnCommit_ = flagValue;
@@ -1586,7 +1568,7 @@ bool ReactNativeFeatureFlagsAccessor::updateRuntimeShadowNodeReferencesOnCommitT
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(86, "updateRuntimeShadowNodeReferencesOnCommitThread");
markFlagAsAccessed(85, "updateRuntimeShadowNodeReferencesOnCommitThread");
flagValue = currentProvider_->updateRuntimeShadowNodeReferencesOnCommitThread();
updateRuntimeShadowNodeReferencesOnCommitThread_ = flagValue;
@@ -1604,7 +1586,7 @@ bool ReactNativeFeatureFlagsAccessor::useAlwaysAvailableJSErrorHandling() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(87, "useAlwaysAvailableJSErrorHandling");
markFlagAsAccessed(86, "useAlwaysAvailableJSErrorHandling");
flagValue = currentProvider_->useAlwaysAvailableJSErrorHandling();
useAlwaysAvailableJSErrorHandling_ = flagValue;
@@ -1622,7 +1604,7 @@ bool ReactNativeFeatureFlagsAccessor::useFabricInterop() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(88, "useFabricInterop");
markFlagAsAccessed(87, "useFabricInterop");
flagValue = currentProvider_->useFabricInterop();
useFabricInterop_ = flagValue;
@@ -1640,7 +1622,7 @@ bool ReactNativeFeatureFlagsAccessor::useNativeViewConfigsInBridgelessMode() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(89, "useNativeViewConfigsInBridgelessMode");
markFlagAsAccessed(88, "useNativeViewConfigsInBridgelessMode");
flagValue = currentProvider_->useNativeViewConfigsInBridgelessMode();
useNativeViewConfigsInBridgelessMode_ = flagValue;
@@ -1658,7 +1640,7 @@ bool ReactNativeFeatureFlagsAccessor::useNestedScrollViewAndroid() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(90, "useNestedScrollViewAndroid");
markFlagAsAccessed(89, "useNestedScrollViewAndroid");
flagValue = currentProvider_->useNestedScrollViewAndroid();
useNestedScrollViewAndroid_ = flagValue;
@@ -1676,7 +1658,7 @@ bool ReactNativeFeatureFlagsAccessor::useSharedAnimatedBackend() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(91, "useSharedAnimatedBackend");
markFlagAsAccessed(90, "useSharedAnimatedBackend");
flagValue = currentProvider_->useSharedAnimatedBackend();
useSharedAnimatedBackend_ = flagValue;
@@ -1694,7 +1676,7 @@ bool ReactNativeFeatureFlagsAccessor::useTraitHiddenOnAndroid() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(92, "useTraitHiddenOnAndroid");
markFlagAsAccessed(91, "useTraitHiddenOnAndroid");
flagValue = currentProvider_->useTraitHiddenOnAndroid();
useTraitHiddenOnAndroid_ = flagValue;
@@ -1712,7 +1694,7 @@ bool ReactNativeFeatureFlagsAccessor::useTurboModuleInterop() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(93, "useTurboModuleInterop");
markFlagAsAccessed(92, "useTurboModuleInterop");
flagValue = currentProvider_->useTurboModuleInterop();
useTurboModuleInterop_ = flagValue;
@@ -1730,7 +1712,7 @@ bool ReactNativeFeatureFlagsAccessor::useWindowDensityForDisplayMetricsAndroid()
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(94, "useWindowDensityForDisplayMetricsAndroid");
markFlagAsAccessed(93, "useWindowDensityForDisplayMetricsAndroid");
flagValue = currentProvider_->useWindowDensityForDisplayMetricsAndroid();
useWindowDensityForDisplayMetricsAndroid_ = flagValue;
@@ -1748,7 +1730,7 @@ double ReactNativeFeatureFlagsAccessor::viewCullingOutsetRatio() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(95, "viewCullingOutsetRatio");
markFlagAsAccessed(94, "viewCullingOutsetRatio");
flagValue = currentProvider_->viewCullingOutsetRatio();
viewCullingOutsetRatio_ = flagValue;
@@ -1766,7 +1748,7 @@ bool ReactNativeFeatureFlagsAccessor::viewTransitionEnabled() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(96, "viewTransitionEnabled");
markFlagAsAccessed(95, "viewTransitionEnabled");
flagValue = currentProvider_->viewTransitionEnabled();
viewTransitionEnabled_ = flagValue;
@@ -1784,7 +1766,7 @@ bool ReactNativeFeatureFlagsAccessor::viewTransitionUseHardwareBitmapAndroid() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(97, "viewTransitionUseHardwareBitmapAndroid");
markFlagAsAccessed(96, "viewTransitionUseHardwareBitmapAndroid");
flagValue = currentProvider_->viewTransitionUseHardwareBitmapAndroid();
viewTransitionUseHardwareBitmapAndroid_ = flagValue;
@@ -1802,7 +1784,7 @@ double ReactNativeFeatureFlagsAccessor::virtualViewPrerenderRatio() {
// be accessing the provider multiple times but the end state of this
// instance and the returned flag value would be the same.
markFlagAsAccessed(98, "virtualViewPrerenderRatio");
markFlagAsAccessed(97, "virtualViewPrerenderRatio");
flagValue = currentProvider_->virtualViewPrerenderRatio();
virtualViewPrerenderRatio_ = flagValue;
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<deca835074bf5db312f6dd5024225fb2>>
* @generated SignedSource<<782d0e42e0854fc260d458a29ea52b8f>>
*/
/**
@@ -49,7 +49,6 @@ class ReactNativeFeatureFlagsAccessor {
bool disableViewPreallocationAndroid();
bool enableAccessibilityOrder();
bool enableAccumulatedUpdatesInRawPropsAndroid();
bool enableAndroidAutoOffscreenCompositingForElevation();
bool enableAndroidTextMeasurementOptimizations();
bool enableAsyncDiskCacheCheckInMultiSourceImageAndroid();
bool enableBridgelessArchitecture();
@@ -144,7 +143,7 @@ class ReactNativeFeatureFlagsAccessor {
std::unique_ptr<ReactNativeFeatureFlagsProvider> currentProvider_;
bool wasOverridden_;
std::array<std::atomic<const char*>, 99> accessedFeatureFlags_;
std::array<std::atomic<const char*>, 98> accessedFeatureFlags_;
std::atomic<std::optional<bool>> commonTestFlag_;
std::atomic<std::optional<bool>> cdpInteractionMetricsEnabled_;
@@ -161,7 +160,6 @@ class ReactNativeFeatureFlagsAccessor {
std::atomic<std::optional<bool>> disableViewPreallocationAndroid_;
std::atomic<std::optional<bool>> enableAccessibilityOrder_;
std::atomic<std::optional<bool>> enableAccumulatedUpdatesInRawPropsAndroid_;
std::atomic<std::optional<bool>> enableAndroidAutoOffscreenCompositingForElevation_;
std::atomic<std::optional<bool>> enableAndroidTextMeasurementOptimizations_;
std::atomic<std::optional<bool>> enableAsyncDiskCacheCheckInMultiSourceImageAndroid_;
std::atomic<std::optional<bool>> enableBridgelessArchitecture_;
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<0d3bb7075eb6c56705ca92778df53ee2>>
* @generated SignedSource<<edaa18da7b657e91ed3b2e5231cc0ac2>>
*/
/**
@@ -89,10 +89,6 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
return false;
}
bool enableAndroidAutoOffscreenCompositingForElevation() override {
return false;
}
bool enableAndroidTextMeasurementOptimizations() override {
return true;
}
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<88c3e2c9d58b1c70df22375b38f7d268>>
* @generated SignedSource<<3e619f92c56f90a6ff3eea0c48d027a7>>
*/
/**
@@ -182,15 +182,6 @@ class ReactNativeFeatureFlagsDynamicProvider : public ReactNativeFeatureFlagsDef
return ReactNativeFeatureFlagsDefaults::enableAccumulatedUpdatesInRawPropsAndroid();
}
bool enableAndroidAutoOffscreenCompositingForElevation() override {
auto value = values_["enableAndroidAutoOffscreenCompositingForElevation"];
if (!value.isNull()) {
return value.getBool();
}
return ReactNativeFeatureFlagsDefaults::enableAndroidAutoOffscreenCompositingForElevation();
}
bool enableAndroidTextMeasurementOptimizations() override {
auto value = values_["enableAndroidTextMeasurementOptimizations"];
if (!value.isNull()) {
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<e4563618acc2de1986840c7cc785d5b2>>
* @generated SignedSource<<60437c0aafa9d1f8de97120056c42970>>
*/
/**
@@ -42,7 +42,6 @@ class ReactNativeFeatureFlagsProvider {
virtual bool disableViewPreallocationAndroid() = 0;
virtual bool enableAccessibilityOrder() = 0;
virtual bool enableAccumulatedUpdatesInRawPropsAndroid() = 0;
virtual bool enableAndroidAutoOffscreenCompositingForElevation() = 0;
virtual bool enableAndroidTextMeasurementOptimizations() = 0;
virtual bool enableAsyncDiskCacheCheckInMultiSourceImageAndroid() = 0;
virtual bool enableBridgelessArchitecture() = 0;
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<2dad5bfb138206688c250519c29c1975>>
* @generated SignedSource<<bcc1a490800e984e516519e8200db82b>>
*/
/**
@@ -119,11 +119,6 @@ bool NativeReactNativeFeatureFlags::enableAccumulatedUpdatesInRawPropsAndroid(
return ReactNativeFeatureFlags::enableAccumulatedUpdatesInRawPropsAndroid();
}
bool NativeReactNativeFeatureFlags::enableAndroidAutoOffscreenCompositingForElevation(
jsi::Runtime& /*runtime*/) {
return ReactNativeFeatureFlags::enableAndroidAutoOffscreenCompositingForElevation();
}
bool NativeReactNativeFeatureFlags::enableAndroidTextMeasurementOptimizations(
jsi::Runtime& /*runtime*/) {
return ReactNativeFeatureFlags::enableAndroidTextMeasurementOptimizations();
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<ce4c09bf5becbf6e192bc43a6e5c6d4a>>
* @generated SignedSource<<b0f0a3f46e38986c1b48e947d1d7af1a>>
*/
/**
@@ -68,8 +68,6 @@ class NativeReactNativeFeatureFlags
bool enableAccumulatedUpdatesInRawPropsAndroid(jsi::Runtime& runtime);
bool enableAndroidAutoOffscreenCompositingForElevation(jsi::Runtime& runtime);
bool enableAndroidTextMeasurementOptimizations(jsi::Runtime& runtime);
bool enableAsyncDiskCacheCheckInMultiSourceImageAndroid(jsi::Runtime& runtime);
@@ -214,17 +214,6 @@ const definitions: FeatureFlagDefinitions = {
},
ossReleaseStage: 'none',
},
enableAndroidAutoOffscreenCompositingForElevation: {
defaultValue: false,
metadata: {
dateAdded: '2026-08-31',
description:
'When enabled, a View with reduced opacity that contains an elevated descendant is composited offscreen so the elevation shadow fades uniformly instead of rendering as banded per-primitive alpha.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
enableAndroidTextMeasurementOptimizations: {
defaultValue: true,
metadata: {
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<9568202bd43aba18de332e6d411a0458>>
* @generated SignedSource<<8817847943e654f2ce61fc39af75baf8>>
* @flow strict
* @noformat
*/
@@ -63,7 +63,6 @@ export type ReactNativeFeatureFlags = Readonly<{
disableViewPreallocationAndroid: Getter<boolean>,
enableAccessibilityOrder: Getter<boolean>,
enableAccumulatedUpdatesInRawPropsAndroid: Getter<boolean>,
enableAndroidAutoOffscreenCompositingForElevation: Getter<boolean>,
enableAndroidTextMeasurementOptimizations: Getter<boolean>,
enableAsyncDiskCacheCheckInMultiSourceImageAndroid: Getter<boolean>,
enableBridgelessArchitecture: Getter<boolean>,
@@ -278,10 +277,6 @@ export const enableAccessibilityOrder: Getter<boolean> = createNativeFlagGetter(
* When enabled, Android will accumulate updates in rawProps to reduce the number of mounting instructions for cascading re-renders.
*/
export const enableAccumulatedUpdatesInRawPropsAndroid: Getter<boolean> = createNativeFlagGetter('enableAccumulatedUpdatesInRawPropsAndroid', false);
/**
* When enabled, a View with reduced opacity that contains an elevated descendant is composited offscreen so the elevation shadow fades uniformly instead of rendering as banded per-primitive alpha.
*/
export const enableAndroidAutoOffscreenCompositingForElevation: Getter<boolean> = createNativeFlagGetter('enableAndroidAutoOffscreenCompositingForElevation', false);
/**
* Enables various optimizations throughout the path of measuring text on Android.
*/
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<55a231fc569a5f337238fa1fd32d7905>>
* @generated SignedSource<<e21323b07d15a319816f210ba88bfcfc>>
* @flow strict
* @noformat
*/
@@ -40,7 +40,6 @@ export interface Spec extends TurboModule {
readonly disableViewPreallocationAndroid?: () => boolean;
readonly enableAccessibilityOrder?: () => boolean;
readonly enableAccumulatedUpdatesInRawPropsAndroid?: () => boolean;
readonly enableAndroidAutoOffscreenCompositingForElevation?: () => boolean;
readonly enableAndroidTextMeasurementOptimizations?: () => boolean;
readonly enableAsyncDiskCacheCheckInMultiSourceImageAndroid?: () => boolean;
readonly enableBridgelessArchitecture?: () => boolean;