diff --git a/ReactCommon/fabric/components/view/ConcreteViewShadowNode.h b/ReactCommon/fabric/components/view/ConcreteViewShadowNode.h index da84b55d0..423b1911c 100644 --- a/ReactCommon/fabric/components/view/ConcreteViewShadowNode.h +++ b/ReactCommon/fabric/components/view/ConcreteViewShadowNode.h @@ -43,17 +43,18 @@ class ConcreteViewShadowNode: static_assert(std::is_base_of::value, "ViewPropsT must be a descendant of AccessibilityProps"); public: + using BaseShadowNode = ConcreteShadowNode< + concreteComponentName, + ViewPropsT, + ViewEventEmitterT + >; using ConcreteViewProps = ViewPropsT; - using SharedConcreteViewProps = std::shared_ptr; - using ConcreteViewEventEmitter = ViewEventEmitterT; - using SharedConcreteViewEventEmitter = std::shared_ptr; - using SharedConcreteViewShadowNode = std::shared_ptr; ConcreteViewShadowNode( const ShadowNodeFragment &fragment, const ShadowNodeCloneFunction &cloneFunction ): - ConcreteShadowNode( + BaseShadowNode( fragment, cloneFunction ), @@ -63,14 +64,14 @@ public: YogaLayoutableShadowNode() { YogaLayoutableShadowNode::setProps(*std::static_pointer_cast(fragment.props)); - YogaLayoutableShadowNode::setChildren(ConcreteShadowNode::template getChildrenSlice()); + YogaLayoutableShadowNode::setChildren(BaseShadowNode::template getChildrenSlice()); }; ConcreteViewShadowNode( const SharedShadowNode &sourceShadowNode, const ShadowNodeFragment &fragment ): - ConcreteShadowNode( + BaseShadowNode( sourceShadowNode, fragment ), @@ -87,7 +88,7 @@ public: } if (fragment.children) { - YogaLayoutableShadowNode::setChildren(ConcreteShadowNode::template getChildrenSlice()); + YogaLayoutableShadowNode::setChildren(BaseShadowNode::template getChildrenSlice()); } };