Skip to content

Commit d867775

Browse files
sherginfacebook-github-bot
authored andcommitted
Fabric: Enable useLegacyStretchBehaviour for Yoga in Fabric
Summary: Apparently, Yoga has a "quirks mode" and we have to enable that for Fabric. Which is probably a mistake that we have to make one more time. Reviewed By: davidaurelio Differential Revision: D15267852 fbshipit-source-id: 88a910fafc9ff64fb19376f4b74a2f2fd5827eba
1 parent bccac53 commit d867775

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ReactCommon/fabric/components/view/yoga/YogaLayoutableShadowNode.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ YGSize YogaLayoutableShadowNode::yogaNodeMeasureCallbackConnector(
289289
void YogaLayoutableShadowNode::initializeYogaConfig(YGConfig &config) {
290290
config.setCloneNodeCallback(
291291
YogaLayoutableShadowNode::yogaNodeCloneCallbackConnector);
292+
config.useLegacyStretchBehaviour = true;
292293
}
293294

294295
} // namespace react

0 commit comments

Comments
 (0)