BugiDev / react-native-calendar-strip

Easy to use and visually stunning calendar component for React Native.
MIT License
949 stars 327 forks source link

crash when passing datesWhitelist #262

Closed HenriqueeLoopes closed 3 years ago

HenriqueeLoopes commented 3 years ago

Hi,

When I try to use the datasWhitelist parameter, the application stops working when assembling the component with the error: 'undefined is not an object (evaluating' dateList [_this.state.numVisibleDays - 1] .date) '.

If I don't use datasWhitelist and pass the key parameter, it is working normally.

peacechen commented 3 years ago

@HenriqueeLoopes Were you able to resolve the error? In the future please include a sample project or code snippet with relevant data.

Vasault commented 3 years ago

having exactly the same issue here, using the example from the documentation

peacechen commented 3 years ago

It may be a while until I can debug this. If you have time, it would help if you would debug it in the sample project. Set breakpoints in the CalendarStrip code where it throws an exception. https://github.com/BugiDev/react-native-calendar-strip#development-with-sample-application