mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Back out "Pass layoutContext to Yoga's MeasureCallback"
Summary: Passing `layoutContext` to yoga crashes fb4a-64. Until I have a solution let's back this out. Original commit changeset: 9df7da4bef8c Changelog: [Internal] Reviewed By: makovkastar Differential Revision: D20246917 fbshipit-source-id: 220744fde9f74e8157fc0714c63639b01152e4ab
This commit is contained in:
committed by
Facebook Github Bot
parent
3ee1e5312a
commit
899b314ca2
@@ -245,11 +245,8 @@ void YogaLayoutableShadowNode::layoutTree(
|
||||
{
|
||||
SystraceSection s("YogaLayoutableShadowNode::YGNodeCalculateLayout");
|
||||
|
||||
YGNodeCalculateLayoutWithContext(&yogaNode_,
|
||||
availableWidth,
|
||||
availableHeight,
|
||||
YGDirectionInherit,
|
||||
&layoutContext);
|
||||
YGNodeCalculateLayout(
|
||||
&yogaNode_, availableWidth, availableHeight, YGDirectionInherit);
|
||||
}
|
||||
|
||||
layout(layoutContext);
|
||||
@@ -323,8 +320,7 @@ YGSize YogaLayoutableShadowNode::yogaNodeMeasureCallbackConnector(
|
||||
float width,
|
||||
YGMeasureMode widthMode,
|
||||
float height,
|
||||
YGMeasureMode heightMode,
|
||||
void *layoutContext) {
|
||||
YGMeasureMode heightMode) {
|
||||
SystraceSection s(
|
||||
"YogaLayoutableShadowNode::yogaNodeMeasureCallbackConnector");
|
||||
|
||||
|
||||
@@ -121,8 +121,7 @@ class YogaLayoutableShadowNode : public LayoutableShadowNode {
|
||||
float width,
|
||||
YGMeasureMode widthMode,
|
||||
float height,
|
||||
YGMeasureMode heightMode,
|
||||
void *layoutContext);
|
||||
YGMeasureMode heightMode);
|
||||
};
|
||||
|
||||
template <>
|
||||
|
||||
Reference in New Issue
Block a user