diff --git a/ReactCommon/fabric/core/shadownode/ConcreteShadowNode.h b/ReactCommon/fabric/core/shadownode/ConcreteShadowNode.h index 01568d583..b722c1a5b 100644 --- a/ReactCommon/fabric/core/shadownode/ConcreteShadowNode.h +++ b/ReactCommon/fabric/core/shadownode/ConcreteShadowNode.h @@ -28,6 +28,8 @@ class ConcreteShadowNode: public ShadowNode { static_assert(std::is_base_of::value, "PropsT must be a descendant of Props"); public: + using ShadowNode::ShadowNode; + using ConcreteProps = PropsT; using SharedConcreteProps = std::shared_ptr; using ConcreteEventEmitter = EventEmitterT; @@ -51,36 +53,6 @@ public: return defaultSharedProps; } - ConcreteShadowNode( - const Tag &tag, - const Tag &rootTag, - const SharedConcreteProps &props, - const SharedConcreteEventEmitter &eventEmitter, - const SharedShadowNodeSharedList &children, - const ShadowNodeCloneFunction &cloneFunction - ): - ShadowNode( - tag, - rootTag, - (SharedProps)props, - eventEmitter, - children, - cloneFunction - ) {}; - - ConcreteShadowNode( - const SharedConcreteShadowNode &shadowNode, - const SharedProps &props, - const SharedEventEmitter &eventEmitter, - const SharedShadowNodeSharedList &children - ): - ShadowNode( - shadowNode, - (SharedProps)props, - eventEmitter, - children - ) {} - ComponentName getComponentName() const override { return ComponentName(concreteComponentName); }