From 4221cba12d189964cefaedec16991868dba9abae Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Fri, 22 Sep 2023 05:53:13 -0700 Subject: [PATCH] remove folly::hash from textlayoutmanager module (#39514) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39514 changelog: [internal] Reviewed By: cipolleschi Differential Revision: D49350125 fbshipit-source-id: 694533fbc4fb26cce8a1c8b8507d403f28c7840e --- .../react/renderer/textlayoutmanager/TextMeasureCache.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.h b/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.h index 8e0d4b062fd..244cf2c5ca4 100644 --- a/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.h +++ b/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.h @@ -7,12 +7,12 @@ #pragma once -#include #include #include #include #include #include +#include namespace facebook::react { @@ -114,8 +114,7 @@ inline size_t textAttributesHashLayoutWise( const TextAttributes& textAttributes) { // Taking into account the same props as // `areTextAttributesEquivalentLayoutWise` mentions. - return folly::hash::hash_combine( - 0, + return facebook::react::hash_combine( textAttributes.fontFamily, textAttributes.fontSize, textAttributes.fontSizeMultiplier,