diff --git a/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.h b/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.h index 0bed0d7d6c7..c51f4ff51da 100644 --- a/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.h +++ b/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.h @@ -146,10 +146,8 @@ inline size_t textAttributesHashLayoutWise( // Here we are not taking `isAttachment` and `layoutMetrics` into account // because they are logically interdependent and this can break an invariant // between hash and equivalence functions (and cause cache misses). - return folly::hash::hash_combine( - 0, - fragment.string, - textAttributesHashLayoutWise(fragment.textAttributes)); + return facebook::react::hash_combine( + fragment.string, textAttributesHashLayoutWise(fragment.textAttributes)); } inline bool areAttributedStringsEquivalentLayoutWise(