farhoudshapouran / react-native-ui-datepicker

Customizable React Native 📅 DatePicker component for Android, iOS, and Web. It includes single, range and multiple modes and supports different locales.
https://farhoudshapouran.github.io/react-native-ui-datepicker/
MIT License
275 stars 28 forks source link

BUG: RangeError: invalid array length #28

Closed kesylo closed 7 months ago

kesylo commented 8 months ago
          Thanks for the quick fix but it caused another issue I think. Now this is what I get

image

I used your latest fix 1.0.6

Originally posted by @kesylo in https://github.com/farhoudshapouran/react-native-ui-datepicker/issues/24#issuecomment-1788175236

farhoudshapouran commented 8 months ago

Yes, this is about all arrays that have the possibility of being undefined, I tried to fix all of them, please use the latest version and let me know if the problem exists yet

kesylo commented 8 months ago

Hey @farhoudshapouran Sorry but still crashes. I would suggest to toggle modes when testing to make sure all is good in different modes. When I set mode="date" or mode="datetime", I get this error

image

farhoudshapouran commented 8 months ago

I think the usage of utils class made this error, I changed the usage of it please update the library and check again, I checked it with all modes: datetime, date, and time

kesylo commented 8 months ago

Dont know what is happening, but I have the exact same issue on 1.0.8. I will try to test on a brand new expo project to see

farhoudshapouran commented 7 months ago

After a thorough investigation, I was unable to reproduce the reported error. I have attempted to recreate the steps outlined in the issue description, but the issue did not manifest in the testing environment.

If you encounter the issue again or have additional information, please reopen the issue.

I have to close this issue as 'Not Planned' for now.