Skip to content

Commit 3d3b8a2

Browse files
fix(mobile): import RCTBridge through the React framework in the menu patch
React Native 0.88 ships React-Core prebuilt, so @react-native-menu/menu's quoted RCTBridge.h import no longer resolves. Fold the fix into the existing menu patch. Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent c4dc88e commit 3d3b8a2

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎patches/@[email protected]‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ diff --git a/ios/MenuViewManager.mm b/ios/MenuViewManager.mm
22
index 3d149b3e7426b8f7c999603ddf1e15e12331c33a..e80fe2caae86e339fcb03408419a7d64b3e5b04f 100644
33
--- a/ios/MenuViewManager.mm
44
+++ b/ios/MenuViewManager.mm
5+
@@ -1,6 +1,6 @@
6+
#import <React/RCTViewManager.h>
7+
#import <React/RCTUIManager.h>
8+
-#import "RCTBridge.h"
9+
+#import <React/RCTBridge.h>
10+
11+
#ifdef RCT_NEW_ARCH_ENABLED
12+
// NEW ARCH
513
@@ -65,6 +65,10 @@ - (UIView *)view
614
* onOpenMenu: callback to be called when the menu is opened
715
*/

‎pnpm-lock.yaml‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)