From a5b80df6c694db1b2325aded55363a75d690150f Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Fri, 2 Oct 2026 05:19:28 -0700 Subject: [PATCH] Use module umbrella headers in attributedstring (#58814) Summary: Pull Request resolved: https://github.com/react/react-native/pull/58814 The `attributedstring` headers included fine-grained headers from other modules that are protected by `UmbrellaGuard.h`, which hard-errors for consumers building with `RN_STRICT_API`. Include the module umbrella headers instead. Changelog: [Internal] Differential Revision: D123001117 --- .../react/renderer/attributedstring/AttributedString.h | 1 + .../react/renderer/attributedstring/ParagraphAttributes.h | 1 + .../ReactCommon/react/renderer/attributedstring/TextAttributes.h | 1 + 3 files changed, 3 insertions(+) diff --git a/packages/react-native/ReactCommon/react/renderer/attributedstring/AttributedString.h b/packages/react-native/ReactCommon/react/renderer/attributedstring/AttributedString.h index 4913f3583704..524af9a27ad5 100644 --- a/packages/react-native/ReactCommon/react/renderer/attributedstring/AttributedString.h +++ b/packages/react-native/ReactCommon/react/renderer/attributedstring/AttributedString.h @@ -10,6 +10,7 @@ #include #include +#include #include #include #include diff --git a/packages/react-native/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.h b/packages/react-native/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.h index 705ffa99c3ab..a944b9e14ff8 100644 --- a/packages/react-native/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.h +++ b/packages/react-native/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.h @@ -13,6 +13,7 @@ #include #include +#include #include #include diff --git a/packages/react-native/ReactCommon/react/renderer/attributedstring/TextAttributes.h b/packages/react-native/ReactCommon/react/renderer/attributedstring/TextAttributes.h index 9f9fdb02b824..e3114b191d2f 100644 --- a/packages/react-native/ReactCommon/react/renderer/attributedstring/TextAttributes.h +++ b/packages/react-native/ReactCommon/react/renderer/attributedstring/TextAttributes.h @@ -16,6 +16,7 @@ #include #include +#include #include #include #include