BugiDev / BugiDev/react-native-calendar-strip
Error on android when using datesBlackList
Open
- Dominant language
- JavaScript
- Stars
- 976
- Forks
- 336
- PR merge metrics
- No merged PRs in 30d
Description
When I use datesBlackList prop I have a "Cannot read property scrollToIndex of undefined" error on android.
Everything works fine on iOS.
My datesBlackList :
```
const datesBlacklist = [
{
start: moment().subtract(1, 'week'),
end: moment().subtract(1, 'day'),
},
];
```

Fix proposed : add a `&& this.rlv` condition in Scroller.js line 145
```
if (this.state.data[i].date.isSame(targetDate, "day") && this.rlv)
```
Contributor guide
Assessment
This issue has not been assessed yet.