react-native-calendar-strip
react-native-calendar-strip copied to clipboard
onWeekChanged callback receives wrong start and end dates during scrolling back
<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' }} />
when i scroll forward i'm getting correct period. if i scroll back start date seems start from Saturday
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.