We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 828ed4a commit 3e18878Copy full SHA for 3e18878
example/src/screens/calendarScreen.tsx
@@ -430,7 +430,7 @@ const CalendarScreen = () => {
430
431
const setCustomHeaderNewMonth = (next = false) => {
432
const add = next ? 1 : -1;
433
- const month = customHeaderProps?.current?.month;
+ const month = new Date(customHeaderProps?.current?.month);
434
const newMonth = new Date(month.setMonth(month.getMonth() + add));
435
customHeaderProps?.current?.addMonth(add);
436
setCurrentMonth(newMonth.toISOString().split('T')[0]);
0 commit comments