mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 08:05:34 +00:00
Mention that LayoutAnimation has to be explicitly enabled on A…
Summary: This is mentioned in a different document but we forgot to mention it in JS docs: - Mentioned here: http://facebook.github.io/react-native/docs/animations.html#layoutanimation - Missing here: http://facebook.github.io/react-native/docs/layoutanimation.html **Test plan** cd website npm install npm start <img width="925" alt="screenshot 2016-11-25 21 48 36" src="https://cloud.githubusercontent.com/assets/346214/20635747/68fe5f6c-b359-11e6-8e72-8f7ca04f79bd.png"> Closes https://github.com/facebook/react-native/pull/11137 Differential Revision: D4233542 fbshipit-source-id: c22b0a05011d4c1c043abee34cd3e9b2369e8772
This commit is contained in:
parent
552c601921
commit
49311a5d75
@ -121,8 +121,11 @@ var Presets = {
|
||||
* Automatically animates views to their new positions when the
|
||||
* next layout happens.
|
||||
*
|
||||
* A common way to use this API is to call `LayoutAnimation.configureNext`
|
||||
* before calling `setState`.
|
||||
* A common way to use this API is to call it before calling `setState`.
|
||||
*
|
||||
* Note that in order to get this to work on **Android** you need to set the following flags via `UIManager`:
|
||||
*
|
||||
* UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true);
|
||||
*/
|
||||
var LayoutAnimation = {
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user