react-native-material-menu icon indicating copy to clipboard operation
react-native-material-menu copied to clipboard

Unable to start Expo SDK42 app with version 2.0.0.0 of react-native-material-menu

Open gpsolarco opened this issue 4 years ago • 2 comments

The UI fails to start when I use v2.0.0.0 with Expo SDK 42. Version 1.2.0 works fine (except the known issue of menu not hiding). It's giving the following error:

Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

NOTE: react-native-reanimated has been downgraded from default 2.2.0 to 1.13.1 due to https://github.com/react-navigation/react-navigation/issues/9665. Hope that's not what could cause this to happen.

gpsolarco avatar Aug 26 '21 03:08 gpsolarco

Hi! Just built an empty project with expo version 42.0.1 and everything works :)

https://github.com/mxck/react-native-menu-expo-42

The project does not use react-native-reanimated.

Are you sure the problem is in the menu? Try running the project with chrome debugger?

mxck avatar Aug 26 '21 07:08 mxck

check the package import

import { Menu, MenuItem, MenuDivider } from 'react-native-material-menu';

bilalyaqoob avatar Jun 30 '22 14:06 bilalyaqoob