diff --git a/packages/react-native/ReactCommon/react/renderer/components/text/BaseTextProps.cpp b/packages/react-native/ReactCommon/react/renderer/components/text/BaseTextProps.cpp index f20cd3c6f980dd..515f74c41d3095 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/text/BaseTextProps.cpp +++ b/packages/react-native/ReactCommon/react/renderer/components/text/BaseTextProps.cpp @@ -524,7 +524,8 @@ void BaseTextProps::appendTextAttributesProps( : nullptr; } - if (textAttributes.opacity != oldProps->textAttributes.opacity) { + if (!floatEquality( + textAttributes.opacity, oldProps->textAttributes.opacity)) { result["opacity"] = textAttributes.opacity; }