diff --git a/ReactCommon/fabric/components/text/basetext/BaseTextProps.h b/ReactCommon/fabric/components/text/basetext/BaseTextProps.h index ba9c7fe4058..5554277f2da 100644 --- a/ReactCommon/fabric/components/text/basetext/BaseTextProps.h +++ b/ReactCommon/fabric/components/text/basetext/BaseTextProps.h @@ -26,7 +26,7 @@ class BaseTextProps { #pragma mark - Props - const TextAttributes textAttributes{}; + TextAttributes textAttributes{}; #pragma mark - DebugStringConvertible (partially) diff --git a/ReactCommon/fabric/components/text/paragraph/ParagraphProps.cpp b/ReactCommon/fabric/components/text/paragraph/ParagraphProps.cpp index 672ad29d787..fc731707084 100644 --- a/ReactCommon/fabric/components/text/paragraph/ParagraphProps.cpp +++ b/ReactCommon/fabric/components/text/paragraph/ParagraphProps.cpp @@ -28,7 +28,14 @@ ParagraphProps::ParagraphProps( rawProps, "selectable", sourceProps.isSelectable, - {})){}; + {})) { + /* + * These props are applied to `View`, therefore they must not be a part of + * base text attributes. + */ + textAttributes.opacity = std::numeric_limits::quiet_NaN(); + textAttributes.backgroundColor = {}; +}; #pragma mark - DebugStringConvertible