mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-09 22:43:10 +08:00
Remove rounding from experimental features
Reviewed By: gkassabli Differential Revision: D4953838 fbshipit-source-id: 3ee5f27d92f95b3ed4a01c98bc35e9157f2e91c5
This commit is contained in:
committed by
Facebook Github Bot
parent
92bf73f689
commit
1a72d91cb2
@@ -13,9 +13,8 @@ import com.facebook.proguard.annotations.DoNotStrip;
|
||||
|
||||
@DoNotStrip
|
||||
public enum YogaExperimentalFeature {
|
||||
ROUNDING(0),
|
||||
WEB_FLEX_BASIS(1),
|
||||
MIN_FLEX_FIX(2);
|
||||
WEB_FLEX_BASIS(0),
|
||||
MIN_FLEX_FIX(1);
|
||||
|
||||
private int mIntValue;
|
||||
|
||||
@@ -29,9 +28,8 @@ public enum YogaExperimentalFeature {
|
||||
|
||||
public static YogaExperimentalFeature fromInt(int value) {
|
||||
switch (value) {
|
||||
case 0: return ROUNDING;
|
||||
case 1: return WEB_FLEX_BASIS;
|
||||
case 2: return MIN_FLEX_FIX;
|
||||
case 0: return WEB_FLEX_BASIS;
|
||||
case 1: return MIN_FLEX_FIX;
|
||||
default: throw new IllegalArgumentException("Unknown enum value: " + value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user