Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/many-sheep-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rnx-kit/react-native-host": patch
---

Fixed detection of unified feature flags
8 changes: 6 additions & 2 deletions packages/react-native-host/cocoa/RNXFeatureMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

#ifdef USE_FEATURE_FLAGS

// TODO: `RCTArchConfiguratorProtocol.h` was removed in 0.87
#if __has_include(<React-RCTAppDelegate/RCTArchConfiguratorProtocol.h>) || __has_include(<React_RCTAppDelegate/RCTArchConfiguratorProtocol.h>)
#define USE_UNIFIED_FEATURE_FLAGS 1
#endif // __has_include(<React-RCTAppDelegate/RCTArchConfiguratorProtocol.h>)
Expand All @@ -52,9 +53,12 @@
#define USE_UPDATE_RUNTIME_SHADOW_NODE_REFS_ON_COMMIT 1
#endif // __has_include(<React-RCTAppDelegate/RCTJSRuntimeConfiguratorProtocol.h>)

#if !__has_include(<React/RCTCxxMethod.h>) // >=0.87
#if REACT_NATIVE_VERSION >= 87000
#define RCT_REMOVE_LEGACY_ARCH 1
#endif // !__has_include(<React/RCTCxxMethod.h>)
#ifndef USE_UNIFIED_FEATURE_FLAGS
#define USE_UNIFIED_FEATURE_FLAGS 1
#endif
#endif // REACT_NATIVE_VERSION >= 87000

#endif // USE_FEATURE_FLAGS

Expand Down
Loading