Refactor ReactShadowNode.SetRootNode() -> ReactShadowNode.setRootTag()

Reviewed By: achen1

Differential Revision: D7419566

fbshipit-source-id: 6be790972e88b879fe690acd4f23d0caa27964a4
This commit is contained in:
David Vacca
2018-03-29 00:03:18 -07:00
committed by Facebook Github Bot
parent b531612b2c
commit e88f128608
5 changed files with 11 additions and 12 deletions
@@ -279,7 +279,7 @@ public class UIImplementation {
Assertions.assertNotNull(rootNode, "Root node with tag " + rootViewTag + " doesn't exist");
cssNode.setReactTag(tag);
cssNode.setViewClassName(className);
cssNode.setRootNode(rootNode);
cssNode.setRootTag(rootNode.getReactTag());
cssNode.setThemedContext(rootNode.getThemedContext());
mShadowNodeRegistry.addNode(cssNode);
@@ -1008,7 +1008,7 @@ public class UIImplementation {
ReactShadowNode node = resolveShadowNode(reactTag);
int rootTag = 0;
if (node != null) {
rootTag = node.getRootNode().getReactTag();
rootTag = node.getRootTag();
} else {
FLog.w(
ReactConstants.TAG,