Add errata for fix to marginStart/End for row-reverse flex direction (#1419)
Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1419 X-link: https://github.com/facebook/litho/pull/961 X-link: https://github.com/facebook/react-native/pull/40803 This stack is ultimately aiming to solve https://github.com/facebook/yoga/issues/1208 This adds an value to the Errata enum. I will use this to gate this fix as there is potential for users to rely on this bug or have a hack in place to fix it and this would be a breaking change. Reviewed By: NickGerleman Differential Revision: D50145273 fbshipit-source-id: 913d2103cd31c1fa94cb39fc15d05b0c0b255920
This commit is contained in:
committed by
Facebook GitHub Bot
parent
50ecd98141
commit
50dc5ae2d1
@@ -12,6 +12,7 @@ package com.facebook.yoga;
|
||||
public enum YogaErrata {
|
||||
NONE(0),
|
||||
STRETCH_FLEX_BASIS(1),
|
||||
STARTING_ENDING_EDGE_FROM_FLEX_DIRECTION(2),
|
||||
ALL(2147483647),
|
||||
CLASSIC(2147483646);
|
||||
|
||||
@@ -29,6 +30,7 @@ public enum YogaErrata {
|
||||
switch (value) {
|
||||
case 0: return NONE;
|
||||
case 1: return STRETCH_FLEX_BASIS;
|
||||
case 2: return STARTING_ENDING_EDGE_FROM_FLEX_DIRECTION;
|
||||
case 2147483647: return ALL;
|
||||
case 2147483646: return CLASSIC;
|
||||
default: throw new IllegalArgumentException("Unknown enum value: " + value);
|
||||
|
Reference in New Issue
Block a user