Classify iosswitch headers as private (#58405)

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

Classify the Apple Fabric Switch C++ headers as private API. Strict API consumers now receive a hard error when including these implementation headers, while React Native builds continue to use them under RN_BUILDING.

Propagate the cxxstableapi dependency from the iosswitch Buck target so its exported guarded headers resolve PrivateGuard.h.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D119171908

fbshipit-source-id: ba935899a990c52c243c6b1a6e80da3b7e1940f9
This commit is contained in:
Dawid Małecki authored and meta-codesync[bot] committed 2026-09-09 07:39:13 -07:00
1 parent 5464221ab8
commit 5dcbbae9b9
2 files changed
+4

No files matched your search

@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/PrivateGuard.h>
#include "AppleSwitchShadowNode.h"
#include <react/renderer/core/ConcreteComponentDescriptor.h>
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/PrivateGuard.h>
#include <react/renderer/components/FBReactNativeSpec/EventEmitters.h>
#include <react/renderer/components/FBReactNativeSpec/Props.h>
#include <react/renderer/components/view/ConcreteViewShadowNode.h>