Breaking: Fix callback const-correctness (#1369)
Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1369 X-link: https://github.com/facebook/react-native/pull/39370 This fixes const-correctness of callbacks (e.g. not letting a logger function modify nodes during layout). This helps us to continue to fix const-correctness issues inside of Yoga. This change is breaking to the public API, since it requires a change in signature passed to Yoga. Changelog: [Internal] Differential Revision: https://internalfb.com/D49130714 fbshipit-source-id: 07e396e6c4f5688a1494210bbd7da9159870eeb9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
86a202b1b6
commit
38153b715a
@@ -21,7 +21,7 @@ struct _MeasureConstraintList {
|
||||
};
|
||||
|
||||
static YGSize _measure(
|
||||
YGNodeRef node,
|
||||
YGNodeConstRef node,
|
||||
float width,
|
||||
YGMeasureMode widthMode,
|
||||
float height,
|
||||
|
Reference in New Issue
Block a user