Expose printTree property of YGConfig to jni

Summary: Exposes printTree property of YGConfig to jni

Reviewed By: IanChilds

Differential Revision: D9561097

fbshipit-source-id: 1bf86a63ad5e9baa107e36d429209b9061e6676d
This commit is contained in:
Pritesh Nandgaonkar
2018-08-30 04:40:48 -07:00
committed by Facebook Github Bot
parent f7df575746
commit d6ba8326d1
2 changed files with 14 additions and 0 deletions

View File

@@ -54,6 +54,11 @@ public class YogaConfig {
jni_YGConfigSetUseWebDefaults(mNativePointer, useWebDefaults);
}
private native void jni_YGConfigSetPrintTreeFlag(long nativePointer, boolean enable);
public void setPrintTreeFlag(boolean enable) {
jni_YGConfigSetPrintTreeFlag(mNativePointer, enable);
}
private native void jni_YGConfigSetPointScaleFactor(long nativePointer, float pixelsInPoint);
public void setPointScaleFactor(float pixelsInPoint) {
jni_YGConfigSetPointScaleFactor(mNativePointer, pixelsInPoint);