Skip to content

Commit 72d45de

Browse files
JoshuaGrossfacebook-github-bot
authored andcommitted
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
1 parent 2aee39c commit 72d45de

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,27 @@ void PrintMutationInstructionRelative(
3838

3939
// This corresponds exactly with JS.
4040
enum class AnimationType {
41-
None,
42-
Spring,
43-
Linear,
44-
EaseInEaseOut,
45-
EaseIn,
46-
EaseOut,
47-
Keyboard
41+
None = 0,
42+
Spring = 1,
43+
Linear = 2,
44+
EaseInEaseOut = 4,
45+
EaseIn = 8,
46+
EaseOut = 16,
47+
Keyboard = 32
4848
};
4949
enum class AnimationProperty {
50-
NotApplicable,
51-
Opacity,
52-
ScaleX,
53-
ScaleY,
54-
ScaleXY
50+
NotApplicable = 0,
51+
Opacity = 1,
52+
ScaleX = 2,
53+
ScaleY = 4,
54+
ScaleXY = 8
5555
};
5656
enum class AnimationConfigurationType {
57-
Noop, // for animation placeholders that are not animated, and should be
57+
Noop = 0, // for animation placeholders that are not animated, and should be
5858
// executed once other animations have completed
59-
Create,
60-
Update,
61-
Delete
59+
Create = 1,
60+
Update = 2,
61+
Delete = 4
6262
};
6363

6464
// This corresponds exactly with JS.

0 commit comments

Comments
 (0)