Compare commits

...
Author SHA1 Message Date
Devmate BotandFacebook GitHub Bot 8672520f63 xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp
Reviewed By: javache

Differential Revision: D78471652
2025-07-17 04:59:32 -07:00
@@ -176,13 +176,13 @@ bool TextAttributes::operator==(const TextAttributes& rhs) const {
TextAttributes TextAttributes::defaultTextAttributes() {
static auto textAttributes = [] {
auto textAttributes = TextAttributes{};
auto defaultAttrs = TextAttributes{};
// Non-obvious (can be different among platforms) default text attributes.
textAttributes.foregroundColor = blackColor();
textAttributes.backgroundColor = clearColor();
textAttributes.fontSize = 14.0;
textAttributes.fontSizeMultiplier = 1.0;
return textAttributes;
defaultAttrs.foregroundColor = blackColor();
defaultAttrs.backgroundColor = clearColor();
defaultAttrs.fontSize = 14.0;
defaultAttrs.fontSizeMultiplier = 1.0;
return defaultAttrs;
}();
return textAttributes;
}