Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gpsolarco opened this issue Aug 26, 2021 · 2 comments

Comments

@gpsolarco
Copy link

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 react-navigation/react-navigation#9665. Hope that's not what could cause this to happen.

@mxck
Copy link
Owner

mxck commented Aug 26, 2021

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?

@bilalyaqoob
Copy link

bilalyaqoob commented Jun 30, 2022

check the package import

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

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

No branches or pull requests

3 participants