HosseinShabani / react-native-modern-datepicker

A customizable calendar, time & month picker for React Native (including Persian Jalaali calendar & locale)
MIT License
573 stars 159 forks source link

Always throw 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. when use Typescript #140

Open devBayu opened 9 months ago

devBayu commented 9 months ago

Describe the bug When me use react-native-modern-datepicker this is work when me use react-native with javascript, but in another project i used Typescript, then this library is not working.

Expected behavior Work like me use javascript

Screenshots Screenshot 2023-09-18 095154

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context This error throwing when first render, and can't rendered react native component.

AhmedFarazQaimkhani commented 7 months ago

got the same error