@rnx-kit/react-native-host 0.5.11 → 0.5.12
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/cocoa/RNXFeatureMacros.h
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
// Force enable Hermes if JSC is not available
|
|
1
2
|
#if !__has_include(<ReactCommon/RCTJscInstance.h>)
|
|
2
3
|
#ifdef USE_HERMES
|
|
3
4
|
#undef USE_HERMES
|
|
4
|
-
#endif //
|
|
5
|
+
#endif // USE_HERMES
|
|
5
6
|
#define USE_HERMES 1
|
|
6
7
|
#endif // !__has_include(<ReactCommon/RCTJscInstance.h>)
|
|
7
8
|
|
|
9
|
+
// Force enable bridgeless mode if New Architecture is enabled and requires it
|
|
10
|
+
#if USE_FABRIC && !__has_include(<react/config/ReactNativeConfig.h>)
|
|
11
|
+
#ifdef USE_BRIDGELESS
|
|
12
|
+
#undef USE_BRIDGELESS
|
|
13
|
+
#endif // USE_BRIDGELESS
|
|
14
|
+
#define USE_BRIDGELESS 1
|
|
15
|
+
#endif // USE_FABRIC && !__has_include(<react/config/ReactNativeConfig.h>)
|
|
16
|
+
|
|
8
17
|
#if USE_BRIDGELESS
|
|
9
18
|
|
|
10
19
|
#if __has_include(<react/config/ReactNativeConfig.h>)
|
package/cocoa/ReactNativeHost.mm
CHANGED
package/package.json
CHANGED