From 3e72211cab9fe590254f73804a560639398932ba Mon Sep 17 00:00:00 2001 From: Olivier Notteghem Date: Fri, 12 Feb 2016 00:11:33 -0800 Subject: [PATCH] fix 'create' animation pivot to be relative to center of component Reviewed By: sahrens Differential Revision: D2931318 fb-gh-sync-id: b95ab0b5631f1780dab065b58340f25a274d0df9 shipit-source-id: b95ab0b5631f1780dab065b58340f25a274d0df9 --- .../react/uimanager/layoutanimation/BaseLayoutAnimation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation.java index 9d3d0f45a..f3c846864 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation.java @@ -34,9 +34,9 @@ import com.facebook.react.uimanager.IllegalViewOperationException; toValue, fromValue, toValue, - Animation.RELATIVE_TO_PARENT, + Animation.RELATIVE_TO_SELF, .5f, - Animation.RELATIVE_TO_PARENT, + Animation.RELATIVE_TO_SELF, .5f); default: throw new IllegalViewOperationException(