react-native-calendar-strip icon indicating copy to clipboard operation
react-native-calendar-strip copied to clipboard

onWeekChanged callback receives wrong start and end dates during scrolling back

Open bars88 opened this issue 3 years ago • 2 comments

<CalendarStrip style={[styleUtils.flex1, styleUtils.ph6]} onWeekChanged={onWeekChanged} scrollable scrollerPaging selectedDate={selectedDate} leftSelector={[]} rightSelector={[]} showMonth={false} scrollToOnSetSelectedDate={false} upperCaseDays={false} dateNameStyle={{ fontFamily: 'SourceSansPro-Regular', fontSize: scale(14), marginBottom: scale(8), }} dateNumberStyle={{ fontFamily: 'SourceSansPro-Regular', fontSize: scale(14), fontWeight: '400' }} />

bars88 avatar Nov 19 '21 15:11 bars88

when i scroll forward i'm getting correct period. if i scroll back start date seems start from Saturday

bars88 avatar Nov 19 '21 16:11 bars88

I am also experiencing issues when scrolling back. The period start and end dates I'm getting in the onWeekChanged are off, and my date selection logic fails because of it.

PunainenAurinko avatar Dec 03 '21 20:12 PunainenAurinko