BugiDev / react-native-calendar-strip

Easy to use and visually stunning calendar component for React Native.
MIT License
934 stars 325 forks source link

Let us pass numDaysScroll as a prop, to avoid certain scrolling bugs. #339

Open joeljoeljoeljoel opened 2 years ago

joeljoeljoeljoel commented 2 years ago

Because of the RecyclerListView that the scroller uses, there are certain restrictions. For example, if I programatically set the selected date to a date outside the current recycle index, the calendar won't scroll to that date.

The number of days in the recycle index is set in calendarStrip.js: this.numDaysScroll = 366;

Can we have the option to set this via a prop instead of it being hard coded, as a way to work around the bugs?