BugiDev / BugiDev/react-native-calendar-strip

TypeError: undefined is not an object (evaluating 'datesList[_this.state.numVisibleDays - 1].date')

Open
#303 11 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
976
Forks
336
PR merge metrics
No merged PRs in 30d

Description

HI, i've added a calendar strip instance like this:

` {
return (date.isoWeekday() === 6 || date.isoWeekday() === 7);
}}
/>`

But i'm getting an error:
TypeError: undefined is not an object (evaluating 'datesList[_this.state.numVisibleDays - 1].date')

If i remove the "datesBlacklist" property, it works but i need to disable saturdays and sundays.

I'm using version => "react-native-calendar-strip": "^2.2.3"

Thanks in advance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.