From 49311a5d759e3f3ffbef66f44c99687351e81ae8 Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Fri, 25 Nov 2016 15:19:44 -0800 Subject: [PATCH] =?UTF-8?q?Mention=20that=20LayoutAnimation=20has=20to=20b?= =?UTF-8?q?e=20explicitly=20enabled=20on=20A=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 screenshot 2016-11-25 21 48 36 Closes https://github.com/facebook/react-native/pull/11137 Differential Revision: D4233542 fbshipit-source-id: c22b0a05011d4c1c043abee34cd3e9b2369e8772 --- Libraries/LayoutAnimation/LayoutAnimation.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Libraries/LayoutAnimation/LayoutAnimation.js b/Libraries/LayoutAnimation/LayoutAnimation.js index 8c18a5b5a..9c1ae88fe 100644 --- a/Libraries/LayoutAnimation/LayoutAnimation.js +++ b/Libraries/LayoutAnimation/LayoutAnimation.js @@ -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 = { /**