mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
e692ae1506
commit
4e2f5bd7ea
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user