setMinContentMeasureFunction
Optional companion to setMeasureFunction used by the CSS Flexbox §4.5 automatic minimum sizing probe. When set, the underlying com.facebook.yoga.YogaNode will invoke this function instead of the regular measure function when sizing this node for its min-content contribution along the parent flex container's main axis.
Use this from a Primitive when its min-content size is cheap to compute or differs from what the regular measure would return under AtMost 0 — e.g. an image returning (0, 0) instead of doing a bitmap intrinsic size lookup, or a collection returning 0 along its scroll axis. Primitives without a min-content measure function fall back to the regular measure with AtMost 0, which text measurers naturally answer with longest-word width.