farhoudshapouran/react-native-ui-datepicker

BUG: RangeError: invalid array length

kesylo opened this issue · 5 comments

kesylo commented
          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 #24 (comment)

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

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

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

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

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.