Skip to content

Commit d3c8245

Browse files
committed
fix(react-native-host): handle removal of RCTArchConfiguratorProtocol.h
1 parent effa465 commit d3c8245

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.changeset/many-sheep-post.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@rnx-kit/react-native-host": patch
3+
---
4+
5+
Fixed detection of unified feature flags

packages/react-native-host/cocoa/RNXFeatureMacros.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,12 @@
5252
#define USE_UPDATE_RUNTIME_SHADOW_NODE_REFS_ON_COMMIT 1
5353
#endif // __has_include(<React-RCTAppDelegate/RCTJSRuntimeConfiguratorProtocol.h>)
5454

55-
#if !__has_include(<React/RCTCxxMethod.h>) // >=0.87
55+
#if REACT_NATIVE_VERSION >= 87000
5656
#define RCT_REMOVE_LEGACY_ARCH 1
57-
#endif // !__has_include(<React/RCTCxxMethod.h>)
57+
#ifndef USE_UNIFIED_FEATURE_FLAGS
58+
#define USE_UNIFIED_FEATURE_FLAGS 1
59+
#endif
60+
#endif // REACT_NATIVE_VERSION >= 87000
5861

5962
#endif // USE_FEATURE_FLAGS
6063

0 commit comments

Comments
 (0)