You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invariant Violation: 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.
Check the render method of `MenuTrigger`.
This error is located at:
in RCTView (at View.js:71)
in View (at MenuTrigger.js:20)
in MenuTrigger (at index.desktop.js:17)
in RCTView (at View.js:71)
in View (at Menu.js:71)
in Menu (at index.desktop.js:16)
in RCTView (at View.js:71)
in View (at MenuProvider.js:200)
in RCTView (at View.js:71)
in View (at MenuProvider.js:199)
in MenuProvider (at index.desktop.js:14)
in BasicExample (at renderApplication.desktop.js:26)
in RCTView (at View.js:71)
in View (at renderApplication.desktop.js:25)
If the import declaration for MenuTrigger is changed to import MenuTrigger from 'react-native-popup-menu';, then the following error appears:
TypeError: _reactNative.BackHandler.addEventListener is not a function
This error is located at:
in MenuProvider (at index.desktop.js:13)
in BasicExample (at renderApplication.desktop.js:26)
in RCTView (at View.js:71)
in View (at renderApplication.desktop.js:25)
The text was updated successfully, but these errors were encountered:
It would be nice to have react-native-popup-menu component working. Currently the integration presents some problems.
Below is the example code:
This code throws the error:
If the import declaration for
MenuTrigger
is changed toimport MenuTrigger from 'react-native-popup-menu';
, then the following error appears:The text was updated successfully, but these errors were encountered: