mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Cover react/runtime/nativeviewconfig with Stable API guards (#58045)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/58045 Classifies `react/runtime/nativeviewconfig:nativeviewconfig` as a private target under the three-tier C++ stable API visibility model. Consumers that opt into `RN_STRICT_API` now get an error if they include its header directly; without that flag the guard is inert, so no existing build changes behaviour. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D116918780 fbshipit-source-id: b8921eb908037ac99280f40c31c2c47d970f8dc2
This commit is contained in:
1 parent
e877b16c8d
commit
802cdd95ac
3 files changed
+4
-1
No files matched your search
@@ -52,6 +52,7 @@ Pod::Spec.new do |s|
|
||||
add_rncore_dependency(s)
|
||||
|
||||
s.dependency "React-jsinspector"
|
||||
s.dependency "React-cxxstableapi"
|
||||
add_dependency(s, "React-jsitooling", :framework_name => "JSITooling")
|
||||
|
||||
mark_as_react_native_build(s)
|
||||
|
||||
@@ -16,5 +16,5 @@ add_library(
|
||||
)
|
||||
target_include_directories(bridgelessnativeviewconfig PUBLIC .)
|
||||
|
||||
target_link_libraries(bridgelessnativeviewconfig jsi)
|
||||
target_link_libraries(bridgelessnativeviewconfig jsi react_cxxstableapi)
|
||||
target_compile_reactnative_options(bridgelessnativeviewconfig PRIVATE)
|
||||
+2
@@ -7,6 +7,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <react/cxxstableapi/PrivateGuard.h>
|
||||
|
||||
#include <jsi/jsi.h>
|
||||
|
||||
namespace facebook::react::LegacyUIManagerConstantsProviderBinding {
|
||||
|
||||
Reference in new issue
Block a user