mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
caab26e0c3
Summary: This diff simplifies the implementation of `LayoutableShadowNode::getRelativeLayoutMetrics`. It fixes a small bug but the most important change is the new interface. Now the function that does measurements accepts a node and a family instead of two nodes. It prevents misuse and misinterpretation of what the function does. The function needs two things to perform measurement: * an ancestor node that defines the tree is being measured and the base node of measurement; * a family of some descendant node being measured relative to the ancestor node. An API that accepts two nodes is misleading because it implies that the given descendant node will be measured (which is not true). Changelog: [Internal] Fabric-specific internal change. Reviewed By: sammy-SC Differential Revision: D21480200 fbshipit-source-id: 9fddc361417fee47bbf66cc7ac2954eb088a3179