From f20529c52efe5258ec673fc0feffed1595b7664a Mon Sep 17 00:00:00 2001 From: Nedunchezhiyan-M Date: Thu, 9 Apr 2026 01:15:16 +0530 Subject: [PATCH] Fix setLayoutAnimationEnabled assigning variable to itself setLayoutAnimationEnabled was assigning isLayoutAnimationEnabled back to itself instead of the value parameter, making the function a no-op. This meant LayoutAnimation could never be toggled at runtime once initialized. --- .../react-native/Libraries/LayoutAnimation/LayoutAnimation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/Libraries/LayoutAnimation/LayoutAnimation.js b/packages/react-native/Libraries/LayoutAnimation/LayoutAnimation.js index 0541357195db..2cd8ae488f10 100644 --- a/packages/react-native/Libraries/LayoutAnimation/LayoutAnimation.js +++ b/packages/react-native/Libraries/LayoutAnimation/LayoutAnimation.js @@ -46,7 +46,7 @@ let isLayoutAnimationEnabled: boolean = ReactNativeFeatureFlags.isLayoutAnimationEnabled(); function setLayoutAnimationEnabled(value: boolean) { - isLayoutAnimationEnabled = isLayoutAnimationEnabled; + isLayoutAnimationEnabled = value; } /**