Description
@rnx-kit/react-native-host@0.5.17 fails to compile against React Native 0.87 nightly (0.87.0-nightly-20260529-88857d22f).
Error
RNXBridgelessHeaders.h:74:33: error: only virtual member functions can be marked 'override'
bool enableFabricRenderer() override
RNXBridgelessHeaders.h:78:28: error: only virtual member functions can be marked 'override'
bool useTurboModules() override
Root Cause
The enableFabricRenderer() and useTurboModules() methods were removed from ReactNativeFeatureFlagsDefaults in React Native 0.87 (Fabric and TurboModules are now always enabled). The RNXBridgelessFeatureFlags subclass in RNXBridgelessHeaders.h still tries to override them, which fails because the base class methods no longer exist.
Workaround
Commenting out the two method overrides resolves the build error:
- bool enableFabricRenderer() override
- {
- return true;
- }
- bool useTurboModules() override
- {
- return true;
- }
+ // enableFabricRenderer and useTurboModules removed in RN 0.87 (always-on)
Environment
@rnx-kit/react-native-host: 0.5.17
react-native: 0.87.0-nightly-20260529-88857d22f
react-native-test-app: 5.1.9
- Xcode: 26 beta
- Platform: iOS Simulator
Description
@rnx-kit/react-native-host@0.5.17fails to compile against React Native 0.87 nightly (0.87.0-nightly-20260529-88857d22f).Error
Root Cause
The
enableFabricRenderer()anduseTurboModules()methods were removed fromReactNativeFeatureFlagsDefaultsin React Native 0.87 (Fabric and TurboModules are now always enabled). TheRNXBridgelessFeatureFlagssubclass inRNXBridgelessHeaders.hstill tries tooverridethem, which fails because the base class methods no longer exist.Workaround
Commenting out the two method overrides resolves the build error:
Environment
@rnx-kit/react-native-host: 0.5.17react-native: 0.87.0-nightly-20260529-88857d22freact-native-test-app: 5.1.9