react-native-general-calendars
react-native-general-calendars copied to clipboard
Element type is invalid
Description
After updating react-native to 0.61.4
, the following error appears:
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.
Reproducible Demo
import { Calendar } from 'react-native-general-calendars';
const Component = () => {
return (
<Calendar
markedDates={{ '2012-05-17': { marked: true } }}
/>
);
};
Environment
- react-native 0.61.4 (Expo SDK 36.0.0)
- react-native-general-calendars 1.11.0