From 85304496c5e17ae233e22b3f28734508272441c2 Mon Sep 17 00:00:00 2001 From: Zeya Peng Date: Thu, 21 Aug 2025 13:56:22 -0700 Subject: [PATCH] Create feature flag cxxAnimatedDebounceQueueFlushDisabled Summary: ## Changelog: [General] [Added] - Create feature flag cxxAnimatedDebounceQueueFlushDisabled Differential Revision: D80715744 --- .../featureflags/ReactNativeFeatureFlags.config.js | 11 +++++++++++ .../private/featureflags/ReactNativeFeatureFlags.js | 8 +++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js b/packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js index 79447c4c3628..10c45afcf16b 100644 --- a/packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js +++ b/packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js @@ -797,6 +797,17 @@ const definitions: FeatureFlagDefinitions = { }, ossReleaseStage: 'none', }, + cxxAnimatedDebounceQueueFlushDisabled: { + defaultValue: false, + metadata: { + dateAdded: '2025-08-21', + description: + 'Disable debounce queue flush if C++ Native Animated is enabled.', + expectedReleaseValue: true, + purpose: 'experimentation', + }, + ossReleaseStage: 'none', + }, deferFlatListFocusChangeRenderUpdate: { defaultValue: false, metadata: { diff --git a/packages/react-native/src/private/featureflags/ReactNativeFeatureFlags.js b/packages/react-native/src/private/featureflags/ReactNativeFeatureFlags.js index bf73f29256a7..e8d38200a77a 100644 --- a/packages/react-native/src/private/featureflags/ReactNativeFeatureFlags.js +++ b/packages/react-native/src/private/featureflags/ReactNativeFeatureFlags.js @@ -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<<825b92d137ed3253e0badd0696605882>> + * @generated SignedSource<<8c13ccfed8750e3a8d5259e4b8ce3021>> * @flow strict * @noformat */ @@ -31,6 +31,7 @@ export type ReactNativeFeatureFlagsJsOnly = $ReadOnly<{ jsOnlyTestFlag: Getter, animatedShouldDebounceQueueFlush: Getter, animatedShouldUseSingleOp: Getter, + cxxAnimatedDebounceQueueFlushDisabled: Getter, deferFlatListFocusChangeRenderUpdate: Getter, enableAccessToHostTreeInFabric: Getter, fixVirtualizeListCollapseWindowSize: Getter, @@ -132,6 +133,11 @@ export const animatedShouldDebounceQueueFlush: Getter = createJavaScrip */ export const animatedShouldUseSingleOp: Getter = createJavaScriptFlagGetter('animatedShouldUseSingleOp', false); +/** + * Disable debounce queue flush if C++ Native Animated is enabled. + */ +export const cxxAnimatedDebounceQueueFlushDisabled: Getter = createJavaScriptFlagGetter('cxxAnimatedDebounceQueueFlushDisabled', false); + /** * Use the deferred cell render update mechanism for focus change in FlatList. */