Add Java bindings for Errata API (#37096)
Summary: X-link: https://github.com/facebook/react-native/pull/37096 Pull Request resolved: https://github.com/facebook/yoga/pull/1263 JNI glue to expose `YogaConfig.setErrata()` and `YogaConfig.getErrata()`. Reviewed By: yungsters Differential Revision: D45296538 fbshipit-source-id: 8d743d278b7df43f7843a79d8f4542bfb03fc08d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
fc6485b8cd
commit
4692e97ba0
@@ -52,6 +52,14 @@ public abstract class YogaConfigJNIBase extends YogaConfig {
|
||||
YogaNative.jni_YGConfigSetUseLegacyStretchBehaviourJNI(mNativePointer, useLegacyStretchBehaviour);
|
||||
}
|
||||
|
||||
public void setErrata(YogaErrata errata) {
|
||||
YogaNative.jni_YGConfigSetErrataJNI(mNativePointer, errata.intValue());
|
||||
}
|
||||
|
||||
public YogaErrata getErrata() {
|
||||
return YogaErrata.fromInt(YogaNative.jni_YGConfigGetErrataJNI(mNativePointer));
|
||||
}
|
||||
|
||||
public void setLogger(YogaLogger logger) {
|
||||
mLogger = logger;
|
||||
YogaNative.jni_YGConfigSetLoggerJNI(mNativePointer, logger);
|
||||
|
Reference in New Issue
Block a user