From 41a659ad5154bdc755861d514602dd6acb439c3a Mon Sep 17 00:00:00 2001 From: shiwansh22 Date: Fri, 18 Jul 2025 18:29:12 +0530 Subject: [PATCH] docs: update LayoutAnimation guide for RN 0.79+ (fixes #4600) --- docs/layoutanimation.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/layoutanimation.md b/docs/layoutanimation.md index 911a247c8c7..3a001804c18 100644 --- a/docs/layoutanimation.md +++ b/docs/layoutanimation.md @@ -9,13 +9,18 @@ A common way to use this API is to call it before updating the state hook in fun Note that in order to get this to work on **Android** you need to set the following flags via `UIManager`: +> ⚠️ **Note (React Native 0.79+)**: +> `UIManager.setLayoutAnimationEnabledExperimental(true)` is **no longer needed** in React Native 0.79+ and above. It is enabled by default now. + +If you're using an older version (before 0.79), you can still use: + ```js if (Platform.OS === 'android') { if (UIManager.setLayoutAnimationEnabledExperimental) { UIManager.setLayoutAnimationEnabledExperimental(true); } } -``` + ## Example