Closed rjuevesano closed 3 years ago
Closing this issue. Got it working!
I'm facing the similar issue.
I solved it by giving values to selectors like below.
leftSelector={<View />} rightSelector={<View />}
but I think it is not a perfect solutioin.
Can you tell me how you solved it?
@Jeyoung-Park I'm using this configuration
<CalendarStrip
scrollable={true}
scrollerPaging={true}
showMonth={true}
styleWeekend={false}
useIsoWeekday={true}
startingDate={dates[0]}
...
/>
and created a patch to fixed it on my end
@rjuevesano Would you mind submitting a PR?
Your modification should be able to be simplified as such:
if (useIsoWeekday) {
// isoWeekday starts from Monday
date = this.setLocale(_startingDate.clone().isoWeekday(i + 1));
} else {
date = this.setLocale(_startingDate.clone().add(i, "days"));
}
Please validate that also works. Would prefer the simpler code in the PR.
@rjuevesano @peacechen in my case, both solution works. Thanks for your help!
2.2.2 has been published with @rjuevesano 's fix
Hello. I really need your help. I’m trying to add scrolling but the starting date has changed. If using arrows, it works fine.
Here’s my code:
https://user-images.githubusercontent.com/4033035/106474459-e8bb3680-64df-11eb-8022-b91ab686526e.MP4