-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Numbers of Days issue #162
Comments
Hi, what version of
|
version : "react-native-week-view": "^0.8.1",
}; |
The old version problem is discarded then.
(Also, notice the |
|
I see, thanks for providing all these details! Anything else just lmk I'll try to reproduce it and fix it soon |
Thanks dear |
Hi, |
I am still not able to fully reproduce this issue. For now, I suggest:
const today = new Date(); // outside of render
// ...
<WeekView
selectedDate={today}
// ...
/>
onSwipeNext={date => props.changeDate(date)}
onSwipePrev={date => props.changeDate(date)}
onDragEvent={(event, newStartDate, newEndDate) => {
doUpdateEventData(event,newStartDate,newEndDate);
}} use: onSwipeNext={props.changeDate}
onSwipePrev={props.changeDate}
onDragEvent={doUpdateEventData} Both 1 and 2 problems may trigger a re-render of the |
Thanks for your quick response. |
when swipe to next or previous then first it takes one-week difference after that it takes the correct date.
number of days are 3
How to solve it?
WhatsApp.Video.2022-02-07.at.9.03.34.PM.mp4
The text was updated successfully, but these errors were encountered: