mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Refactor ReactShadowNode.SetRootNode() -> ReactShadowNode.setRootTag()
Reviewed By: achen1 Differential Revision: D7419566 fbshipit-source-id: 6be790972e88b879fe690acd4f23d0caa27964a4
This commit is contained in:
committed by
Facebook Github Bot
parent
b531612b2c
commit
e88f128608
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user