Skip to main content
Version: Next 🚧

Migrate from react-native-calendar-strip

react-native-calendar-strip hasn't had a release since May 2022, and it pulls in moment and recyclerlistview, with Moment objects in every callback. WeekStrip has no dependencies, works in plain Dates, and follows the iOS, Material and web designs. To let the week open into its whole month, use ExpandableCalendar.

Code changes​

- import CalendarStrip from 'react-native-calendar-strip';
- import moment from 'moment';
+ import { WeekStrip } from '@elik56a/react-native-pickers';

- <CalendarStrip
- selectedDate={day}
- onDateSelected={(date) => setDay(date.toDate())}
- markedDates={[{ date: '2026-11-05', dots: [{ color: 'red' }] }]}
- minDate={moment()}
- scrollable
- />
+ <WeekStrip
+ value={day}
+ onChange={setDay}
+ markedDates={{ '2026-11-05': { dots: ['red'] } }}
+ minDate={new Date()}
+ />

Props​

calendar-stripReact Native Pickers
selectedDatevalue (a Date)
onDateSelected(moment)onChange(date)
startingDateinitialWeek
onWeekChanged(start, end)onWeekChange(weekStart)
minDate / maxDateminDate / maxDate: days outside are disabled and paging stops at their weeks
datesBlacklistisDateDisabled(date), or { disabled: true } in markedDates
datesWhitelistisDateDisabled={(d) => !allowed(d)}
markedDates (array with dots / lines)markedDates keyed by 'YYYY-MM-DD' (toDateKey), with dots, label or textColor
scrollable / scrollerPagingswiping pages a week at a time (enableSwipe, on by default)
useIsoWeekdayfirstDayOfWeek, from locale by default
locale (a Moment locale)locale (a BCP 47 tag, names from Intl)
showMonth / calendarHeaderFormatshowHeader / formatTitle
showDayName / upperCaseDaysshowWeekdays / weekdayFormat
leftSelector / rightSelector / iconLeft / iconRightrenderArrow(direction, disabled)
dayComponentrenderDay(state, theme)
highlightDateNumberStyle, dateNameStyle…the calendar slots in styles
calendarAnimation / daySelectionAnimationeach design's own selection
getSelectedDate() / setSelectedDate()controlled value
numDaysInWeek—

See all migration guides for other libraries, and Comparison for when another library is the better choice.