Skip to content

Commit 70cd2b9

Browse files
coadometa-codesync[bot]
authored andcommitted
Make internal text component headers private (#58924)
Summary: Pull Request resolved: #58924 Lower seven `react/renderer/components/text` headers from "for frameworks" to private: - `stateConversions.h`: `toMapBuffer(ParagraphState)`, used only by the Android `ParagraphState` implementation. - Android `conversions.h`: `fromRawValue` / `toString` for the Android `DataDetectorType` prop, used only by the Android `HostPlatformParagraphProps` implementation. - `SelectableParagraphComponentDescriptor.h` / `SelectableParagraphShadowNode.h`: the SelectableParagraph core component, registered only by React Native's own Android core components registry. - `TextEffectComponentDescriptor.h` / `TextEffectShadowNode.h` / `TextEffectProps.h`: the TextEffect core component, likewise registered only by React Native's own Android core components registry. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D123626782 fbshipit-source-id: 4db9cb19eff7078557c33ce39ae7bcac6ab3ea30
1 parent e5b4b7f commit 70cd2b9

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎packages/react-native/ReactCommon/react/renderer/components/text/SelectableParagraphComponentDescriptor.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#pragma once
99

10-
#include <react/cxxstableapi/FrameworksGuard.h>
10+
#include <react/cxxstableapi/PrivateGuard.h>
1111

1212
#include <react/renderer/components/text/BaseParagraphComponentDescriptor.h>
1313
#include <react/renderer/components/text/SelectableParagraphShadowNode.h>

‎packages/react-native/ReactCommon/react/renderer/components/text/SelectableParagraphShadowNode.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#pragma once
99

10-
#include <react/cxxstableapi/FrameworksGuard.h>
10+
#include <react/cxxstableapi/PrivateGuard.h>
1111

1212
#include <react/renderer/components/text/ParagraphShadowNode.h>
1313

‎packages/react-native/ReactCommon/react/renderer/components/text/TextEffectComponentDescriptor.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#pragma once
99

10-
#include <react/cxxstableapi/FrameworksGuard.h>
10+
#include <react/cxxstableapi/PrivateGuard.h>
1111

1212
#include <React/RendererCore.h>
1313
#include <react/renderer/components/text/TextEffectShadowNode.h>

‎packages/react-native/ReactCommon/react/renderer/components/text/TextEffectProps.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#pragma once
99

10-
#include <react/cxxstableapi/FrameworksGuard.h>
10+
#include <react/cxxstableapi/PrivateGuard.h>
1111

1212
#include <React/RendererCore.h>
1313
#include <folly/dynamic.h>

‎packages/react-native/ReactCommon/react/renderer/components/text/TextEffectShadowNode.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#pragma once
99

10-
#include <react/cxxstableapi/FrameworksGuard.h>
10+
#include <react/cxxstableapi/PrivateGuard.h>
1111

1212
#include <React/RendererCore.h>
1313
#include <React/View.h>

‎packages/react-native/ReactCommon/react/renderer/components/text/platform/android/react/renderer/components/text/conversions.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#pragma once
99

10-
#include <react/cxxstableapi/FrameworksGuard.h>
10+
#include <react/cxxstableapi/PrivateGuard.h>
1111

1212
#include <React/RendererCore.h>
1313
#include <react/renderer/components/text/primitives.h>

‎packages/react-native/ReactCommon/react/renderer/components/text/stateConversions.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#pragma once
99

10-
#include <react/cxxstableapi/FrameworksGuard.h>
10+
#include <react/cxxstableapi/PrivateGuard.h>
1111

1212
#include <react/renderer/attributedstring/conversions.h>
1313
#include <react/renderer/components/text/ParagraphState.h>

0 commit comments

Comments
 (0)