Complete rollout of shouldSkipStateUpdatesForLoopingAnimations (#49296)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49296

Already fulled out by default in OSS and internally.

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D69395210

fbshipit-source-id: 39b0d6f7a1a186d132d93105e360717835b442c5
This commit is contained in:
Pieter De Baets
2025-02-10 05:53:42 -08:00
committed by Facebook GitHub Bot
parent e692ae1506
commit 4e2f5bd7ea
3 changed files with 2 additions and 22 deletions
@@ -145,10 +145,7 @@ export default class Animation {
if (value != null) {
animatedValue.__onAnimatedValueUpdateReceived(value);
if (
ReactNativeFeatureFlags.shouldSkipStateUpdatesForLoopingAnimations() &&
this.__isLooping === true
) {
if (this.__isLooping === true) {
return;
}
@@ -617,17 +617,6 @@ const definitions: FeatureFlagDefinitions = {
},
ossReleaseStage: 'none',
},
shouldSkipStateUpdatesForLoopingAnimations: {
defaultValue: true,
metadata: {
dateAdded: '2024-07-25',
description:
'If the animation is within Animated.loop, we do not send state updates to React.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'none',
},
shouldUseAnimatedObjectForTransform: {
defaultValue: false,
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<<959e1f4818fbbf4bd7176638e6e4107d>>
* @generated SignedSource<<c52ca8dfb648e85fdaa147d2af5078d0>>
* @flow strict
*/
@@ -38,7 +38,6 @@ export type ReactNativeFeatureFlagsJsOnly = $ReadOnly<{
fixVirtualizeListCollapseWindowSize: Getter<boolean>,
isLayoutAnimationEnabled: Getter<boolean>,
scheduleAnimatedCleanupInMicrotask: Getter<boolean>,
shouldSkipStateUpdatesForLoopingAnimations: Getter<boolean>,
shouldUseAnimatedObjectForTransform: Getter<boolean>,
shouldUseRemoveClippedSubviewsAsDefaultOnIOS: Getter<boolean>,
shouldUseSetNativePropsInFabric: Getter<boolean>,
@@ -150,11 +149,6 @@ export const isLayoutAnimationEnabled: Getter<boolean> = createJavaScriptFlagGet
*/
export const scheduleAnimatedCleanupInMicrotask: Getter<boolean> = createJavaScriptFlagGetter('scheduleAnimatedCleanupInMicrotask', false);
/**
* If the animation is within Animated.loop, we do not send state updates to React.
*/
export const shouldSkipStateUpdatesForLoopingAnimations: Getter<boolean> = createJavaScriptFlagGetter('shouldSkipStateUpdatesForLoopingAnimations', true);
/**
* Enables use of AnimatedObject for animating transform values.
*/