Closed Kasendwa closed 4 months ago
solve?
solve?
Sorry, did I do something wrong? Or missed out something?
solve?
Sorry, did I do something wrong? Or missed out something?
no i ask if u solve it
it
Oh. Not yet. But hopefully I will find a solution soon.
I will update here in case of anything
This patch solves it for me
index 6018cd1..23ef306 100644
--- a/node_modules/@react-native-menu/menu/ios/NewArch/MenuView.mm
+++ b/node_modules/@react-native-menu/menu/ios/NewArch/MenuView.mm
@@ -1,5 +1,5 @@
#ifdef RCT_NEW_ARCH_ENABLED
-#import <react_native_menu-Swift.h>
+#import <react_native_menu/react_native_menu-Swift.h>
#import "MenuView.h"
#import <react/renderer/components/RNMenuViewSpec/ComponentDescriptors.h>
@rranjan14 what verson of react-native-menu
do you have?
@rranjan14 what verson of
react-native-menu
do you have?
1.0.2
@rranjan14 what verson of
react-native-menu
do you have?1.0.2
hmm, i've tried and it didn't work for me
This patch solves it for me
index 6018cd1..23ef306 100644 --- a/node_modules/@react-native-menu/menu/ios/NewArch/MenuView.mm +++ b/node_modules/@react-native-menu/menu/ios/NewArch/MenuView.mm @@ -1,5 +1,5 @@ #ifdef RCT_NEW_ARCH_ENABLED -#import <react_native_menu-Swift.h> +#import <react_native_menu/react_native_menu-Swift.h> #import "MenuView.h" #import <react/renderer/components/RNMenuViewSpec/ComponentDescriptors.h>
Lovely! This worked for me. Thanks a lot.
Can we please merge this to main? I'd love to import this library
I'm getting this error:
I'm getting this error:
I noticed this is with v1.0.3. The patch above should solves this. Do you know how to patch a package, may be?
@rranjan14's patch works for me, thank you! Would be great to get this fixed in @react-native-menu/menu
+1 getting those too with "react-native":"0.74.1"
and current latest version of the package "@react-native-menu/menu": "^1.1.0",
. Will try and see if the patch works 🤞🏽
Works wIth the below patch (copied from other's suggestion above) 🥳 :
diff --git a/ios/MenuViewManager.mm b/ios/MenuViewManager.mm
index a9748300d787222d672b9f9dae33c7d04fd9f791..df4050034ee70b6560a81fbfb1fd4bc47155a9fa 100644
--- a/ios/MenuViewManager.mm
+++ b/ios/MenuViewManager.mm
@@ -7,7 +7,7 @@
#import "MenuView.h"
#else
// OLD ARCH
-#import <react_native_menu-Swift.h>
+#import <react_native_menu/react_native_menu-Swift.h>
#endif
@interface MenuViewManager : RCTViewManager
diff --git a/ios/NewArch/MenuView.mm b/ios/NewArch/MenuView.mm
index 6018cd109bf156fcbd20ac455fb722546d50396c..23ef3067319738f998fb849b8673a58bb10df0b9 100644
--- a/ios/NewArch/MenuView.mm
+++ b/ios/NewArch/MenuView.mm
@@ -1,5 +1,5 @@
#ifdef RCT_NEW_ARCH_ENABLED
-#import <react_native_menu-Swift.h>
+#import <react_native_menu/react_native_menu-Swift.h>
#import "MenuView.h"
#import <react/renderer/components/RNMenuViewSpec/ComponentDescriptors.h>
Now it works for me on the old arch, but new arch fails with the same error
Bumping react-native-menu to 1.1.2 solved the issue for me.
Hi! First of all, thanks for the wonderful work on this package.
I have failed to make a build with
react-native@0.74.1
,newArchEnabled = true
anduseFrameworks = "static"
The error is as shown below
I am using
@react-native-menu/menu@1.0.2