File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
packages/react-native/ReactCommon/react/renderer Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class ComponentDescriptor {
78
78
/*
79
79
* Creates a new `ShadowNode` of a particular component type.
80
80
*/
81
- virtual ShadowNode::Shared createShadowNode (
81
+ virtual std::shared_ptr<ShadowNode> createShadowNode (
82
82
const ShadowNodeFragment& fragment,
83
83
const ShadowNodeFamily::Shared& family) const = 0;
84
84
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class ConcreteComponentDescriptor : public ComponentDescriptor {
63
63
return ShadowNodeT::BaseTraits ();
64
64
}
65
65
66
- ShadowNode::Shared createShadowNode (
66
+ std::shared_ptr<ShadowNode> createShadowNode (
67
67
const ShadowNodeFragment& fragment,
68
68
const ShadowNodeFamily::Shared& family) const override {
69
69
auto shadowNode =
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ UIManager::~UIManager() {
62
62
<< " )." ;
63
63
}
64
64
65
- ShadowNode::Shared UIManager::createNode (
65
+ std::shared_ptr<ShadowNode> UIManager::createNode (
66
66
Tag tag,
67
67
const std::string& name,
68
68
SurfaceId surfaceId,
@@ -109,7 +109,7 @@ ShadowNode::Shared UIManager::createNode(
109
109
return shadowNode;
110
110
}
111
111
112
- ShadowNode::Shared UIManager::cloneNode (
112
+ std::shared_ptr<ShadowNode> UIManager::cloneNode (
113
113
const ShadowNode& shadowNode,
114
114
const ShadowNode::SharedListOfShared& children,
115
115
const RawProps* rawProps) const {
Original file line number Diff line number Diff line change @@ -130,14 +130,14 @@ class UIManager final : public ShadowTreeDelegate {
130
130
const RootShadowNode::Shared& oldRootShadowNode,
131
131
const RootShadowNode::Unshared& newRootShadowNode) const override ;
132
132
133
- ShadowNode::Shared createNode (
133
+ std::shared_ptr<ShadowNode> createNode (
134
134
Tag tag,
135
135
const std::string& componentName,
136
136
SurfaceId surfaceId,
137
137
const RawProps& props,
138
138
const InstanceHandle::Shared& instanceHandle) const ;
139
139
140
- ShadowNode::Shared cloneNode (
140
+ std::shared_ptr<ShadowNode> cloneNode (
141
141
const ShadowNode& shadowNode,
142
142
const ShadowNode::SharedListOfShared& children = nullptr ,
143
143
const RawProps* rawProps = nullptr ) const ;
You can’t perform that action at this time.
0 commit comments