react-native-calendar-kit icon indicating copy to clipboard operation
react-native-calendar-kit copied to clipboard

Header not getting changed on Daily , 3 Days view when changed date through goToDate in latest version.

Open SwikarBhattarai opened this issue 1 year ago • 12 comments

@howljs

SwikarBhattarai avatar Nov 05 '24 05:11 SwikarBhattarai

same on 7 days view

OleksiiShcherba avatar Nov 22 '24 22:11 OleksiiShcherba

Begin working only after you have made your first swap to the left or right to alter the date.

OleksiiShcherba avatar Nov 22 '24 22:11 OleksiiShcherba

Is there any update on this? I have tried using this calendar component and this is the only bug that is preventing me from using it. Here is the problem:

When I use the goToDate() function to programmatically change the date in the calendar, I expect that the dates in the calendar also changes. However, the header does not update unless I swipe the calendar timeline left or right.

Something is not being updated or rendered after calling the goToDate() function in the calendar. Any ideas? @howljs?

pateljoel avatar Dec 11 '24 23:12 pateljoel

@pateljoel I solved this by replacing useSyncedList.tsx file inside hooks folder from previous version.

SwikarBhattarai avatar Dec 12 '24 01:12 SwikarBhattarai

@SwikarBhattarai which version did you copy from?

leongwenxuan avatar Jan 02 '25 02:01 leongwenxuan

@pateljoel I solved this by replacing useSyncedList.tsx file inside hooks folder from previous version.

which version did you copy from?

sspeng123 avatar Jan 17 '25 15:01 sspeng123

@SwikarBhattarai Is this the same issue as mine?

https://github.com/howljs/react-native-calendar-kit/issues/178

ArindamRayMukherjee avatar Jan 22 '25 07:01 ArindamRayMukherjee

To solve this issue, replace useSyncedList.tsx file from v2.1.0.

SwikarBhattarai avatar Jan 24 '25 08:01 SwikarBhattarai

I apologize everyone for being a bit busy lately, so I haven't been able to update the library. I will try to find time to update and improve the issues next month

howljs avatar Jan 24 '25 09:01 howljs

@howljs No apology needed at all! Its a great lib and will save us a lot of time!

We're a small team but we can help fix things with a bit of guidance from you on the lib structure, if you think that can save you time. Otherwise happy to wait for when you come around to this.

ArindamRayMukherjee avatar Jan 24 '25 09:01 ArindamRayMukherjee

This comment worked for me, thanks @SwikarBhattarai.

tedvangageldonk avatar Feb 07 '25 14:02 tedvangageldonk

To solve this issue, replace useSyncedList.tsx file from v2.1.0.

but onDateChanged function return date is error

sspeng123 avatar Feb 20 '25 23:02 sspeng123

To solve this issue, replace useSyncedList.tsx file from v2.1.0.

Hi, I fully reverted the version to 2.1.0 bu the behaviour is the same, can you please point I am doing wrong> thanks.

butterfly-valley avatar Mar 10 '25 15:03 butterfly-valley

Any hope of having this in the next version? 🥹

moiguitarrock avatar Mar 14 '25 19:03 moiguitarrock

To solve this issue, replace useSyncedList.tsx file from v2.1.0.

Hi, I fully reverted the version to 2.1.0 bu the behaviour is the same, can you please point I am doing wrong> thanks.

hey @butterfly-valley did you have any luck with this?

moiguitarrock avatar Mar 26 '25 14:03 moiguitarrock

having the issue, i have numsOfDays={1} with this when i swipe left for first time it changed the date fine but when i do that again it stays in the same day and again i swipe i swept two days directly. any solution on this? using version 2.2.2 with newArchEnabled={true}

Avinashsinh007 avatar Jul 31 '25 15:07 Avinashsinh007