diff --git a/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.h b/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.h index 4a0fd56be48720..0a9ff8c78d5505 100644 --- a/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.h +++ b/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.h @@ -208,8 +208,7 @@ inline bool operator==( return areAttributedStringsEquivalentLayoutWise( lhs.attributedString, rhs.attributedString) && lhs.paragraphAttributes == rhs.paragraphAttributes && - lhs.layoutConstraints.maximumSize.width == - rhs.layoutConstraints.maximumSize.width; + lhs.layoutConstraints == rhs.layoutConstraints; } inline bool operator!=( @@ -243,7 +242,7 @@ struct hash { return facebook::react::hash_combine( attributedStringHashLayoutWise(key.attributedString), key.paragraphAttributes, - key.layoutConstraints.maximumSize.width); + key.layoutConstraints); } };