Skip to content

Commit 5dcbbae

Browse files
coadometa-codesync[bot]
authored andcommitted
Classify iosswitch headers as private (#58405)
Summary: Pull Request resolved: #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
1 parent 5464221 commit 5dcbbae

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

packages/react-native/ReactCommon/react/renderer/components/switch/iosswitch/react/renderer/components/switch/AppleSwitchComponentDescriptor.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
#pragma once
99

10+
#include <react/cxxstableapi/PrivateGuard.h>
11+
1012
#include "AppleSwitchShadowNode.h"
1113

1214
#include <react/renderer/core/ConcreteComponentDescriptor.h>

packages/react-native/ReactCommon/react/renderer/components/switch/iosswitch/react/renderer/components/switch/AppleSwitchShadowNode.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
#pragma once
99

10+
#include <react/cxxstableapi/PrivateGuard.h>
11+
1012
#include <react/renderer/components/FBReactNativeSpec/EventEmitters.h>
1113
#include <react/renderer/components/FBReactNativeSpec/Props.h>
1214
#include <react/renderer/components/view/ConcreteViewShadowNode.h>

0 commit comments

Comments
 (0)