mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-13 09:20:50 +08:00
Add getUndefined() method to obtain the undefined value
Summary: Add getUndefined() method to obtain the undefined value. This would allow to obtain the Yoga undefined value in runtime, and not just in compile time Reviewed By: davidaurelio Differential Revision: D13136972 fbshipit-source-id: aa198aa1ea65bb6b7302abeba6f9f5d483a45ff3
This commit is contained in:
committed by
Facebook Github Bot
parent
ecc7012179
commit
3337a1db55
@@ -35,4 +35,8 @@ public class YogaConstants {
|
||||
public static boolean isUndefined(YogaValue value) {
|
||||
return value.unit == YogaUnit.UNDEFINED;
|
||||
}
|
||||
|
||||
public static float getUndefined() {
|
||||
return UNDEFINED;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user