Skip to content
This repository has been archived by the owner on Feb 18, 2019. It is now read-only.

Commit

Permalink
Updated animation documentation to enable LayoutAnimation in Android.
Browse files Browse the repository at this point in the history
Summary:Added a note in the Animation documentation to let people know that they need to enable `LayoutAnimation` with `UIMananger` for Android.

Resolves facebook#5267.
Closes facebook#6482

Differential Revision: D3058305

fb-gh-sync-id: 3527236a015c91973ab6237c3495983f407a53db
shipit-source-id: 3527236a015c91973ab6237c3495983f407a53db
  • Loading branch information
peterp authored and Facebook Github Bot 6 committed Mar 16, 2016
1 parent 2209131 commit ebb8576
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/Animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```
![](img/LayoutAnimationExample.gif)
```javascript
Expand Down

0 comments on commit ebb8576

Please sign in to comment.