mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fabric: YogaLayoutableShadowNode::setProps() was replaced with updateYogaProps()
Summary: `YogaLayoutableShadowNode::setProps()` was renamed to `YogaLayoutableShadowNode::updateYogaProps()`. Now we don't need to pass an argument to this function because the object is already initialized. The new name also disambiguates this method with `getProp()` from `ShadowNode` (which does something completely different). Changelog: [Internal] Fabric-specific internal change. Reviewed By: sammy-SC Differential Revision: D20052018 fbshipit-source-id: 4d9651bb4452408708fa1b36bb5c5c8639f7d1bb
This commit is contained in:
1 parent
124c20b2b1
commit
191d65ec4e
3 files changed
+8
-6
No files matched your search
+1
-1
@@ -118,7 +118,7 @@ protected:
|
||||
// Set new props on node
|
||||
const_cast<AndroidTextInputProps&>(textInputShadowNode->getConcreteProps()).yogaStyle.padding() = result;
|
||||
// Communicate new props to Yoga part of the node
|
||||
textInputShadowNode->setProps((YogaStylableProps)textInputShadowNode->getConcreteProps());
|
||||
textInputShadowNode->updateYogaProps();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user