mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Rename measure to measureContent and pass it LayoutContext
Summary: In order to build dynamic text sizing, `LayoutableShadowNode::measure` needs to accept `LayoutContext` Changelog: [Internal] Reviewed By: shergin Differential Revision: D20184598 fbshipit-source-id: 8928b59d51948caf3654f40049212a89a91dceb6
This commit is contained in:
committed by
Facebook Github Bot
parent
d98a229202
commit
b40f0562f5
@@ -21,8 +21,9 @@ void AndroidSwitchShadowNode::setAndroidSwitchMeasurementsManager(
|
||||
|
||||
#pragma mark - LayoutableShadowNode
|
||||
|
||||
Size AndroidSwitchShadowNode::measure(
|
||||
LayoutConstraints layoutConstraints) const {
|
||||
Size AndroidSwitchShadowNode::measureContent(
|
||||
LayoutConstraints layoutConstraints,
|
||||
LayoutContext layoutContext) const {
|
||||
return measurementsManager_->measure(getSurfaceId(), layoutConstraints);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user