BugiDev / BugiDev/react-native-calendar-strip

Strip jumping to different years or month on certain devices

Open
#388 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
976
Forks
336
PR merge metrics
No merged PRs in 30d

Description

I tested my react native app on different devices , some device will show the month and date properly but on other devices it just randomly skips to other dates eg. feb 2026

Here's my code

```
{
startTransition(() => {
if (mode === "range") {
setMode("single");
setSelectedDate(moment(date));
setStartDate(null);
setEndDate(null);
calendarRef.current.updateWeekView(date);
} else {
setSelectedDate(moment(date));
calendarRef.current.updateWeekView(date);
}
});
}}
dayContainerStyle={{ padding: 2, margin: 0 }}
highlightDateContainerStyle={{
backgroundColor: 'white',
borderRadius: 10
}}
scrollToOnSetSelectedDate={true}
scrollerPaging={true}
customDatesStyles={mode === 'range' ? getCustomDatesStyles : null}
// startingDate={moment().add(3,"days")}
// headerText={moment(selectedDate).format("MMMM YYYY")}
useIsoWeekday={true}
updateWeek={true}

/>) : null}

```

I am using expo sdk 53

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.