Package 

Class YogaConfigJNIBase

    • Method Detail

      • setUseLegacyStretchBehaviour

         void setUseLegacyStretchBehaviour(boolean useLegacyStretchBehaviour)

        Yoga previously had an error where containers would take the maximum space possible instead of the minimumlike they are supposed to. In practice this resulted in implicit behaviour similar to align-self: stretch;Because this was such a long-standing bug we must allow legacy users to switch back to this behaviour.

      • setShouldDiffLayoutWithoutLegacyStretchBehaviour

         void setShouldDiffLayoutWithoutLegacyStretchBehaviour(boolean shouldDiffLayoutWithoutLegacyStretchBehaviour)

        If this flag is set then yoga would diff the layout without legacy flag and would set a bool inYogaNode(mDoesLegacyStretchFlagAffectsLayout) with true if the layouts were different and falseif not