diff --git a/ReactCommon/fabric/components/text/paragraph/ParagraphShadowNode.h b/ReactCommon/fabric/components/text/paragraph/ParagraphShadowNode.h index 4a1ab6c57..f402ab812 100644 --- a/ReactCommon/fabric/components/text/paragraph/ParagraphShadowNode.h +++ b/ReactCommon/fabric/components/text/paragraph/ParagraphShadowNode.h @@ -21,6 +21,8 @@ namespace react { extern const char ParagraphComponentName[]; +using ParagraphEventEmitter = ViewEventEmitter; + /* * `ShadowNode` for component, represents -like component * containing and displaying text. Text content is represented as nested @@ -29,7 +31,8 @@ extern const char ParagraphComponentName[]; class ParagraphShadowNode: public ConcreteViewShadowNode< ParagraphComponentName, - ParagraphProps + ParagraphProps, + ParagraphEventEmitter >, public BaseTextShadowNode { diff --git a/ReactCommon/fabric/components/text/text/TextShadowNode.h b/ReactCommon/fabric/components/text/text/TextShadowNode.h index b19ddc47f..319fd574a 100644 --- a/ReactCommon/fabric/components/text/text/TextShadowNode.h +++ b/ReactCommon/fabric/components/text/text/TextShadowNode.h @@ -7,6 +7,7 @@ #pragma once +#include #include #include #include @@ -16,10 +17,13 @@ namespace react { extern const char TextComponentName[]; +using TextEventEmitter = TouchEventEmitter; + class TextShadowNode: public ConcreteShadowNode< TextComponentName, - TextProps + TextProps, + TextEventEmitter >, public BaseTextShadowNode {