Cover textlayoutmanager with Stable API guards (#58312)

Summary:
Pull Request resolved: https://github.com/react/react-native/pull/58312

Classifies `react/renderer/textlayoutmanager:textlayoutmanager` as a "for frameworks" target under the three-tier C++ stable API visibility model. Consumers that opt into `RN_STRICT_API` now get a warning if they include its headers directly, which they can acknowledge with `RN_ALLOW_FRAMEWORKS`; without that flag the guards are inert, so no existing build changes behaviour.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D118630817

fbshipit-source-id: 7e73e1db43e380be3af20470ee19525bbac15342
This commit is contained in:
Jakub Piasecki authored and meta-codesync[bot] committed 2026-09-09 02:40:37 -07:00
1 parent ff3ea5eaec
commit 8f9232bd13
14 files changed
+27

No files matched your search

@@ -38,6 +38,7 @@ target_link_libraries(react_renderer_textlayoutmanager
${fbjni}
folly_runtime
${mapbufferjni}
react_cxxstableapi
react_debug
react_renderer_attributedstring
react_renderer_componentregistry
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <react/renderer/core/ReactPrimitives.h>
#include <react/renderer/graphics/Float.h>
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <glog/logging.h>
#include <cstddef>
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <react/renderer/attributedstring/AttributedString.h>
#include <react/renderer/attributedstring/ParagraphAttributes.h>
#include <react/renderer/core/LayoutConstraints.h>
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <cmath>
#include <react/renderer/graphics/Size.h>
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <fbjni/fbjni.h>
namespace facebook::react {
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <react/jni/SafeReleaseJniRef.h>
#include <react/renderer/attributedstring/AttributedStringBox.h>
#include <react/renderer/attributedstring/ParagraphAttributes.h>
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <react/renderer/attributedstring/AttributedStringBox.h>
#include <react/renderer/attributedstring/ParagraphAttributes.h>
#include <react/renderer/core/LayoutConstraints.h>
@@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/
#include <react/cxxstableapi/FrameworksGuard.h>
#import <UIKit/UIKit.h>
#include <react/renderer/attributedstring/AttributedString.h>
@@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/
#include <react/cxxstableapi/FrameworksGuard.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#import <React/RCTDefines.h>
#import <UIKit/UIKit.h>
#import <react/renderer/textlayoutmanager/RCTFontProperties.h>
@@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/
#include <react/cxxstableapi/FrameworksGuard.h>
#import <UIKit/UIKit.h>
#import <react/renderer/attributedstring/AttributedString.h>
@@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/
#include <react/cxxstableapi/FrameworksGuard.h>
#import <UIKit/UIKit.h>
#include <react/renderer/graphics/RCTPlatformColorUtils.h>
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <react/renderer/attributedstring/AttributedStringBox.h>
#include <react/renderer/attributedstring/ParagraphAttributes.h>
#include <react/renderer/core/LayoutConstraints.h>