@rnx-kit/react-native-host 0.3.0 → 0.3.1

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.
@@ -0,0 +1,7 @@
1
+ #include <folly/Portability.h>
2
+ #if FOLLY_HAS_COROUTINES
3
+ // TODO: `FOLLY_CFG_NO_COROUTINES` was added in 0.73. We can drop this block
4
+ // when we drop support for 0.72:
5
+ // https://github.com/facebook/react-native/commit/17154a661fe06ed25bf599f47bd4193eba011971
6
+ #define FOLLY_HAS_COROUTINES 0
7
+ #endif
@@ -1,6 +1,7 @@
1
1
  #import "RNXFabricAdapter.h"
2
2
 
3
3
  #ifdef USE_FABRIC
4
+ #include "FollyConfig.h"
4
5
  #pragma clang diagnostic push
5
6
  #pragma clang diagnostic ignored "-Wcomma"
6
7
  #pragma clang diagnostic ignored "-Wdocumentation"
@@ -1,12 +1,6 @@
1
1
  #import "RNXTurboModuleAdapter.h"
2
2
 
3
- #include <folly/Portability.h>
4
- #if FOLLY_HAS_COROUTINES
5
- // TODO: `FOLLY_CFG_NO_COROUTINES` was added in 0.73. We can drop this block
6
- // when we drop support for 0.72:
7
- // https://github.com/facebook/react-native/commit/17154a661fe06ed25bf599f47bd4193eba011971
8
- #define FOLLY_HAS_COROUTINES 0
9
- #endif
3
+ #include "FollyConfig.h"
10
4
  #pragma clang diagnostic push
11
5
  #pragma clang diagnostic ignored "-Wcomma"
12
6
  #import <cxxreact/JSExecutor.h>
@@ -90,7 +84,8 @@
90
84
 
91
85
  // MARK: - Private
92
86
 
93
- - (std::unique_ptr<facebook::react::JSExecutorFactory>)initJsExecutorFactoryWithBridge:(RCTBridge *)bridge
87
+ - (std::unique_ptr<facebook::react::JSExecutorFactory>)initJsExecutorFactoryWithBridge:
88
+ (RCTBridge *)bridge
94
89
  {
95
90
  #if USE_RUNTIME_SCHEDULER
96
91
  _runtimeScheduler =
@@ -1,12 +1,6 @@
1
1
  #import "ReactNativeHost.h"
2
2
 
3
- #include <folly/Portability.h>
4
- #if FOLLY_HAS_COROUTINES
5
- // TODO: `FOLLY_CFG_NO_COROUTINES` was added in 0.73. We can drop this block
6
- // when we drop support for 0.72:
7
- // https://github.com/facebook/react-native/commit/17154a661fe06ed25bf599f47bd4193eba011971
8
- #define FOLLY_HAS_COROUTINES 0
9
- #endif
3
+ #include "FollyConfig.h"
10
4
  #pragma clang diagnostic push
11
5
  #pragma clang diagnostic ignored "-Wcomma"
12
6
  #import <cxxreact/JSExecutor.h>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnx-kit/react-native-host",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
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",
@@ -28,6 +28,7 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "@rnx-kit/scripts": "*",
31
+ "@rnx-kit/tsconfig": "*",
31
32
  "prettier": "^3.0.0"
32
33
  }
33
34
  }