From 44ffdbaa96af9f7e3bb226d7238ba8c7de2854bd Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Mon, 5 Oct 2026 00:35:15 -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] Reviewed By: cipolleschi Differential Revision: D123001117 fbshipit-source-id: add4b021e19ebd2402cee9d99a97243fd3a4f711 --- .../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 4913f358370..524af9a27ad 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 705ffa99c3a..a944b9e14ff 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 9d5ab145a1f..49e3d5deaa5 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