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:
Valentin Shergin authored and Facebook Github Bot committed 2020-02-26 22:08:21 -08:00
1 parent 124c20b2b1
commit 191d65ec4e
3 files changed
+8 -6

No files matched your search

@@ -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();
}
}