From 72d45de21e6fa507c084b9d20e1149ee8f3bff14 Mon Sep 17 00:00:00 2001 From: Joshua Gross Date: Mon, 29 Mar 2021 20:27:38 -0700 Subject: [PATCH] Label LayoutAnimations enums with numbers for debugging Summary: Just makes it easier to log and inspect these values. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D27407778 fbshipit-source-id: 68e93d100b56bc9065f0ff1370260412d729312d --- .../LayoutAnimationKeyFrameManager.h | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h b/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h index 2186c2431a49e7..43e2060eebca23 100644 --- a/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +++ b/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h @@ -38,27 +38,27 @@ void PrintMutationInstructionRelative( // This corresponds exactly with JS. enum class AnimationType { - None, - Spring, - Linear, - EaseInEaseOut, - EaseIn, - EaseOut, - Keyboard + None = 0, + Spring = 1, + Linear = 2, + EaseInEaseOut = 4, + EaseIn = 8, + EaseOut = 16, + Keyboard = 32 }; enum class AnimationProperty { - NotApplicable, - Opacity, - ScaleX, - ScaleY, - ScaleXY + NotApplicable = 0, + Opacity = 1, + ScaleX = 2, + ScaleY = 4, + ScaleXY = 8 }; enum class AnimationConfigurationType { - Noop, // for animation placeholders that are not animated, and should be + Noop = 0, // for animation placeholders that are not animated, and should be // executed once other animations have completed - Create, - Update, - Delete + Create = 1, + Update = 2, + Delete = 4 }; // This corresponds exactly with JS.