diff --git a/packages/react-native/ReactCommon/yoga/yoga/YGConfig.h b/packages/react-native/ReactCommon/yoga/yoga/YGConfig.h index 215eab6da51..9baec289112 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/YGConfig.h +++ b/packages/react-native/ReactCommon/yoga/yoga/YGConfig.h @@ -79,8 +79,14 @@ YG_EXPORT float YGConfigGetPointScaleFactor(YGConfigConstRef config); * Configures how Yoga balances W3C conformance vs compatibility with layouts * created against earlier versions of Yoga. * - * By default Yoga will prioritize W3C conformance. `Errata` may be set to ask - * Yoga to produce specific incorrect behaviors. E.g. `YGConfigSetErrata(config, + * A new config sets a few errata, each of which keeps layouts as they were + * before the fix it names; otherwise Yoga prioritizes W3C conformance. + * `YGConfigGetErrata` returns them, and the "Configuring Yoga" page of the + * documentation lists them. + * + * `YGConfigSetErrata` replaces the whole set. `YGConfigSetErrata(config, + * YGErrataNone)` clears every erratum. To add one, combine it with the current + * set: `YGConfigSetErrata(config, YGConfigGetErrata(config) | * YGErrataStretchFlexBasis)`. * * YGErrata is a bitmask, and multiple errata may be set at once. Predefined