mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Cover the intersection observer modules with Stable API guards (#58125)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/58125 Classifies `react/renderer/observers/intersection:intersection` and `react/nativemodule/intersectionobserver:intersectionobserver` as private targets under the three-tier C++ stable API visibility model. Consumers that opt into `RN_STRICT_API` now get an error if they include their headers directly; without that flag the guards are inert, so no existing build changes behaviour. Changelog: [Internal] Reviewed By: christophpurrer Differential Revision: D117324071 fbshipit-source-id: 0ee34eea6ba8688da5f4e51b51d0e945ee295df8
This commit is contained in:
1 parent
d6ba88e16d
commit
7eafaa2db7
7 files changed
+11
No files matched your search
+1
@@ -16,6 +16,7 @@ target_include_directories(react_nativemodule_intersectionobserver PUBLIC ${REAC
|
||||
target_link_libraries(react_nativemodule_intersectionobserver
|
||||
react_codegen_rncore
|
||||
react_cxxreact
|
||||
react_cxxstableapi
|
||||
react_renderer_bridging
|
||||
react_renderer_core
|
||||
react_renderer_graphics
|
||||
|
||||
+2
@@ -7,6 +7,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <react/cxxstableapi/PrivateGuard.h>
|
||||
|
||||
#if __has_include("FBReactNativeSpecJSI.h") // CocoaPod headers on Apple
|
||||
#include "FBReactNativeSpecJSI.h"
|
||||
#else
|
||||
|
||||
+1
@@ -60,6 +60,7 @@ Pod::Spec.new do |s|
|
||||
s.dependency "React-Fabric"
|
||||
s.dependency "React-Fabric/bridging"
|
||||
s.dependency "React-runtimescheduler"
|
||||
s.dependency "React-cxxstableapi"
|
||||
add_dependency(s, "React-RCTFBReactNativeSpec")
|
||||
add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"])
|
||||
add_dependency(s, "React-graphics", :additional_framework_paths => ["react/renderer/graphics/platform/ios"])
|
||||
|
||||
@@ -16,6 +16,7 @@ target_include_directories(react_renderer_observers_intersection PUBLIC ${REACT_
|
||||
target_link_libraries(react_renderer_observers_intersection
|
||||
react_cxxreact
|
||||
react_bridging
|
||||
react_cxxstableapi
|
||||
react_debug
|
||||
react_renderer_core
|
||||
react_renderer_graphics
|
||||
|
||||
+2
@@ -7,6 +7,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <react/cxxstableapi/PrivateGuard.h>
|
||||
|
||||
#include <react/renderer/components/root/RootShadowNode.h>
|
||||
#include <react/renderer/core/ShadowNodeFamily.h>
|
||||
#include <react/renderer/graphics/Float.h>
|
||||
|
||||
+2
@@ -7,6 +7,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <react/cxxstableapi/PrivateGuard.h>
|
||||
|
||||
#include <react/renderer/core/ShadowNode.h>
|
||||
#include <react/renderer/graphics/Float.h>
|
||||
#include <react/renderer/runtimescheduler/RuntimeScheduler.h>
|
||||
|
||||
+2
@@ -7,6 +7,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <react/cxxstableapi/PrivateGuard.h>
|
||||
|
||||
#include <react/renderer/graphics/Float.h>
|
||||
#include <optional>
|
||||
|
||||
|
||||
Reference in new issue
Block a user