Ship the fix for local reference overflow in Yoga (#1347)

Summary:
X-link: https://github.com/facebook/litho/pull/954

X-link: https://github.com/facebook/react-native/pull/39132

Pull Request resolved: https://github.com/facebook/yoga/pull/1347

# Context

Reviewed By: NickGerleman, astreet

Differential Revision: D48607502

fbshipit-source-id: 79552bc76879d1fc15341423ae6fbadeab2fb7af
This commit is contained in:
Andrew Wang
2023-08-24 12:48:56 -07:00
committed by Facebook GitHub Bot
parent 38ad93c87b
commit 49fbd406b6
6 changed files with 17 additions and 33 deletions

View File

@@ -11,8 +11,7 @@ package com.facebook.yoga;
public enum YogaExperimentalFeature {
WEB_FLEX_BASIS(0),
ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE(1),
FIX_JNILOCAL_REF_OVERFLOWS(2);
ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE(1);
private final int mIntValue;
@@ -28,7 +27,6 @@ public enum YogaExperimentalFeature {
switch (value) {
case 0: return WEB_FLEX_BASIS;
case 1: return ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE;
case 2: return FIX_JNILOCAL_REF_OVERFLOWS;
default: throw new IllegalArgumentException("Unknown enum value: " + value);
}
}