mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 08:05:34 +00:00
Updated animation documentation to enable LayoutAnimation in Android.
Summary:Added a note in the Animation documentation to let people know that they need to enable `LayoutAnimation` with `UIMananger` for Android. Resolves #5267. Closes https://github.com/facebook/react-native/pull/6482 Differential Revision: D3058305 fb-gh-sync-id: 3527236a015c91973ab6237c3495983f407a53db shipit-source-id: 3527236a015c91973ab6237c3495983f407a53db
This commit is contained in:
parent
2209131933
commit
ebb85768b5
@ -267,6 +267,12 @@ it provides much less control than `Animated` and other animation libraries, so
|
||||
you may need to use another approach if you can't get `LayoutAnimation` to do
|
||||
what you want.
|
||||
|
||||
Note that in order to get this to work on **Android** you need to set the following flags via `UIManager`:
|
||||
|
||||
```javascript
|
||||
UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true);
|
||||
```
|
||||
|
||||

|
||||
|
||||
```javascript
|
||||
|
Loading…
x
Reference in New Issue
Block a user