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
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
Desktop (please complete the following information):
OS: Windows 11
Browser: Chrome
Version: 116.0.5845.188 (Official Build) (64-bit)
Smartphone (please complete the following information):
Device: Android Samsung A51
OS: Android 3.3
Browser: Chrome
Version [e.g. 22]
Additional context
This error throwing when first render, and can't rendered react native component.
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](https://github.com/HosseinShabani/react-native-modern-datepicker/assets/49808051/f5a39e24-d4ec-47a6-a714-9308c662b2ba)
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.