setBaselineFunction not working in JavaScript #591
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Report
Issues and Steps to Reproduce
Replaces this with steps to repro your issue.
setBaselineFunction
doesn't seem to be available in JavaScript build.In the Java and C# builds you can set a baseline function like this (copied from
YogaNodeTest.java
:Expected Behavior
Describe what you expected would happen.
Ability to set function in JS, e.g. by using
child2.setBaselineFunction((node, width, height) => 80);
Actual Behavior
Describe what actually happened.
Error is thrown
TypeError: child2.setBaselineFunction is not a function