mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: This diff introduces a new method of `LayoutableShadowNode` called `measure`. The purpose of the method is to measure the node from an "outside" perspective (including paddings and so on). The existing method with the same name (but with slightly different signature) will be renamed to `measureContent` in future diffs. Hense we will have two `measure*` methods: * `measureContent` measures nested content of the node; * `measure` measures the node (outside). This diff also introduces a default implementation of a new measure that uses `layoutTree` under the hood. Measures the node with given layoutConstraints and layoutContext. The size of nested content and the padding should be included, the margin should *not* be included. Changelog: [Internal] Fabric-specific internal change. Reviewed By: JoshuaGross, sammy-SC Differential Revision: D20268047 fbshipit-source-id: 29c28cf16c5afe24f1bfb6e76c42816d4583a8fa