Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions packages/react-native/ReactCommon/yoga/yoga/YGConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading