diff --git a/java/jni/YGJNI.cpp b/java/jni/YGJNI.cpp index df03988331..d9e1db4aa3 100644 --- a/java/jni/YGJNI.cpp +++ b/java/jni/YGJNI.cpp @@ -111,6 +111,7 @@ static float YGJNIBaselineFunc(YGNodeRef node, float width, float height) { if (auto obj = YGNodeJobject(node)->lockLocal()) { static auto baselineFunc = findClassStatic("com/facebook/yoga/YogaNode") ->getMethod("baseline"); + YGTransferLayoutOutputsRecursive(obj); return baselineFunc(obj, width, height); } else { return height;