From 0a3808d07ccf2bbbbe54eff29b571205a95dcf09 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Thu, 17 Jul 2025 12:59:13 -0700 Subject: [PATCH] RN: Cleanup `alwaysFlattenAnimatedStyles` Flag (#52682) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52682 Cleans up the `alwaysFlattenAnimatedStyles` feature flag. This was already unused starting with {D77314904}. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D78497554 fbshipit-source-id: 8bfbe6485812a675cdf3e78612347457f45ada90 --- .../featureflags/ReactNativeFeatureFlags.config.js | 11 ----------- .../private/featureflags/ReactNativeFeatureFlags.js | 8 +------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js b/packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js index 03fa8cb884e..2d6368b3031 100644 --- a/packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js +++ b/packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js @@ -708,17 +708,6 @@ const definitions: FeatureFlagDefinitions = { jsOnly: { ...testDefinitions.jsOnly, - alwaysFlattenAnimatedStyles: { - defaultValue: false, - metadata: { - dateAdded: '2025-06-02', - description: - 'Changes `Animated` to always flatten style, fixing a bug with shadowed `AnimatedNode` instances.', - expectedReleaseValue: true, - purpose: 'experimentation', - }, - ossReleaseStage: 'none', - }, animatedShouldDebounceQueueFlush: { defaultValue: false, metadata: { diff --git a/packages/react-native/src/private/featureflags/ReactNativeFeatureFlags.js b/packages/react-native/src/private/featureflags/ReactNativeFeatureFlags.js index 7e652e4a318..1c4c5c73e96 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<> + * @generated SignedSource<<742172e146c6eeb22c2b5058058b1b83>> * @flow strict * @noformat */ @@ -29,7 +29,6 @@ import { export type ReactNativeFeatureFlagsJsOnly = $ReadOnly<{ jsOnlyTestFlag: Getter, - alwaysFlattenAnimatedStyles: Getter, animatedShouldDebounceQueueFlush: Getter, animatedShouldUseSingleOp: Getter, avoidStateUpdateInAnimatedPropsMemo: Getter, @@ -120,11 +119,6 @@ export type ReactNativeFeatureFlags = $ReadOnly<{ */ export const jsOnlyTestFlag: Getter = createJavaScriptFlagGetter('jsOnlyTestFlag', false); -/** - * Changes `Animated` to always flatten style, fixing a bug with shadowed `AnimatedNode` instances. - */ -export const alwaysFlattenAnimatedStyles: Getter = createJavaScriptFlagGetter('alwaysFlattenAnimatedStyles', false); - /** * Enables an experimental flush-queue debouncing in Animated.js. */