@rnx-kit/react-native-host 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -4
- package/ReactNativeHost.podspec +4 -1
- package/cocoa/RNXTurboModuleAdapter.mm +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
<!--remove-block start-->
|
|
2
|
-
|
|
3
1
|
# @rnx-kit/react-native-host
|
|
4
2
|
|
|
5
3
|
[](https://github.com/microsoft/rnx-kit/actions/workflows/build.yml)
|
|
6
4
|
[](https://www.npmjs.com/package/@rnx-kit/react-native-host)
|
|
7
5
|
|
|
8
|
-
<!--remove-block end-->
|
|
9
|
-
|
|
10
6
|
`@rnx-kit/react-native-host` simplifies React Native initialization.
|
|
11
7
|
|
|
12
8
|
The aim of this package is to provide a backwards (and forwards) compatible way
|
package/ReactNativeHost.podspec
CHANGED
|
@@ -31,10 +31,13 @@ Pod::Spec.new do |s|
|
|
|
31
31
|
s.dependency 'React-Core'
|
|
32
32
|
s.dependency 'React-cxxreact'
|
|
33
33
|
|
|
34
|
+
# Normally, we wouldn't need this unless New Arch was enabled. However,
|
|
35
|
+
# Reanimated requires a header from here.
|
|
36
|
+
s.dependency 'ReactCommon/turbomodule/core'
|
|
37
|
+
|
|
34
38
|
if new_arch_enabled
|
|
35
39
|
s.dependency 'React-RCTAppDelegate'
|
|
36
40
|
s.dependency 'React-RCTFabric'
|
|
37
|
-
s.dependency 'ReactCommon/turbomodule/core'
|
|
38
41
|
end
|
|
39
42
|
|
|
40
43
|
s.pod_target_xcconfig = {
|
|
@@ -16,9 +16,21 @@
|
|
|
16
16
|
#else
|
|
17
17
|
#import <React-RCTAppDelegate/RCTAppSetupUtils.h>
|
|
18
18
|
#import <React/RCTSurfacePresenterBridgeAdapter.h>
|
|
19
|
+
|
|
20
|
+
// We still get into this path because react-native-macos 0.71 picked up some
|
|
21
|
+
// 0.72 bits. AFAICT, `RCTLegacyInteropComponents.h` is a new addition in 0.72
|
|
22
|
+
// in both react-native and react-native-macos.
|
|
23
|
+
#if __has_include(<React-RCTAppDelegate/RCTLegacyInteropComponents.h>)
|
|
19
24
|
#import <react/renderer/runtimescheduler/RuntimeScheduler.h>
|
|
20
25
|
#import <react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.h>
|
|
26
|
+
#if __has_include(<React/RCTRuntimeExecutorFromBridge.h>)
|
|
27
|
+
#import <React/RCTRuntimeExecutorFromBridge.h>
|
|
28
|
+
#endif // __has_include(<React/RCTRuntimeExecutorFromBridge.h>)
|
|
21
29
|
#define USE_RUNTIME_SCHEDULER 1
|
|
30
|
+
#else
|
|
31
|
+
#define USE_RUNTIME_SCHEDULER 0
|
|
32
|
+
#endif // __has_include(<React-RCTAppDelegate/RCTLegacyInteropComponents.h>)
|
|
33
|
+
|
|
22
34
|
#endif // __has_include(<React/RCTAppSetupUtils.h>)
|
|
23
35
|
|
|
24
36
|
#endif // USE_TURBOMODULE
|
package/package.json
CHANGED