@rnx-kit/react-native-host 0.2.6 → 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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnx-kit/react-native-host",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Simplify React Native initialization",
5
5
  "homepage": "https://github.com/microsoft/rnx-kit/tree/main/packages/react-native-host#readme",
6
6
  "license": "MIT",