Skip to content

Commit 41a659a

Browse files
author
shiwansh22
committed
docs: update LayoutAnimation guide for RN 0.79+ (fixes #4600)
1 parent a53ae2a commit 41a659a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/layoutanimation.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,18 @@ A common way to use this API is to call it before updating the state hook in fun
99

1010
Note that in order to get this to work on **Android** you need to set the following flags via `UIManager`:
1111

12+
> ⚠️ **Note (React Native 0.79+)**:
13+
> `UIManager.setLayoutAnimationEnabledExperimental(true)` is **no longer needed** in React Native 0.79+ and above. It is enabled by default now.
14+
15+
If you're using an older version (before 0.79), you can still use:
16+
1217
```js
1318
if (Platform.OS === 'android') {
1419
if (UIManager.setLayoutAnimationEnabledExperimental) {
1520
UIManager.setLayoutAnimationEnabledExperimental(true);
1621
}
1722
}
18-
```
23+
1924

2025
## Example
2126

0 commit comments

Comments
 (0)