BugiDev / react-native-calendar-strip

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

Disable scroll animation between weeks #363

Open ErionTp opened 2 years ago

ErionTp commented 2 years ago

Below is the configuration for the calendar:

<CalendarStrip selectedDate={new Date()} onDateSelected={(value) => { setCurrentDate(value.toDate()); refetch(); }} scrollToOnSetSelectedDate={false} useIsoWeekday={true} style={{ height: 60, width: '100%' }} scrollerPaging={true} scrollable={true} showMonth={false} useNativeDriver={true} calendarAnimation={{ type: 'parallel', duration: 30 }} upperCaseDays={false} iconContainer={{ display: 'none', }} highlightDateNameStyle={{ color: 'white' }} highlightDateNumberStyle={{ color: 'white' }} highlightDateContainerStyle={{ backgroundColor: APP_COLORS.blue, borderRadius: 8, width: 40 }} />

Can anyone please help me how to disable the scroll animation? When I try to scroll to the next week the animation slows down the scroll.