Skip to content

fix(ios): qualify the React bridge header import - #1227

Open
1kuko3 wants to merge 1 commit into
react-native-menu:masterfrom
1kuko3:codex/fix-ios-react-bridge-import
Open

1kuko3 wants to merge 1 commit into
react-native-menu:masterfrom
1kuko3:codex/fix-ios-react-bridge-import

Conversation

@1kuko3

@1kuko3 1kuko3 commented Sep 23, 2026

Copy link
Copy Markdown

Overview

Fixes #1221.

Use <React/RCTBridge.h> in MenuViewManager.mm, matching the other React imports in this file. The unqualified include fails with the RN 0.87+ header layout; the header itself is still available. This is the same qualified import confirmed in the issue.

The change is limited to header lookup. It preserves the existing import and leaves both architecture implementations and Android unchanged.

Test Plan

Built the iOS simulator Debug app with Xcode 27 and code signing disabled:

  • Upstream example with RN 0.81.1, new architecture: passed.
  • Upstream example with RN 0.81.1, old architecture: passed.
  • Minimal Expo 58.0.0-preview.4 app with RN 0.88.0-rc.1, new architecture: passed.

yarn typescript and yarn biome lint . pass. yarn test --runInBand passes, though the existing suite contains only a todo test. Validation covers compilation; I did not run menu interaction tests for this header-only change.

@1kuko3
1kuko3 requested a review from Naturalclar as a code owner September 23, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS build failure with RN 0.87: "'RCTBridge.h' file not found"

1 participant