Skip to content

Commit 7212d3d

Browse files
Update TextAttributes.cpp
1 parent cf52852 commit 7212d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace facebook::react {
1919

2020
void TextAttributes::apply(TextAttributes textAttributes) {
2121
// Color
22-
foregroundColor = textAttributes.foregroundColor
22+
foregroundColor = (textAttributes.foregroundColor != NULL && std::is_integral<decltype(textAttributes.foregroundColor)>::value)
2323
? textAttributes.foregroundColor
2424
: foregroundColor;
2525
backgroundColor = textAttributes.backgroundColor

0 commit comments

Comments
 (0)