Compare commits

...
1 Commits
Author SHA1 Message Date
Devmate BotandFacebook GitHub Bot c3c50f4354 xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp
Reviewed By: rshest

Differential Revision: D83641704
2025-10-02 01:26:52 -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;
}