-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Delay when using WeekCalendar and AgendaList together. #2194
Comments
Also experiencing this but when I remove the debounce the delay seems to persist for some reason. Have used patch package, removed node_modules, cleared expo cache, etc etc. |
I removed the |
@Inbal-Tish, what are your thoughts on this issue? Can we add a prop to the AgendaList to decide whether to use the debounce? |
@aleberguer Hi. PR will be best. I would add a prop to control the debounce time. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
same issue |
Hey, I have had the same issue and created this patch which works as a temporary fix until the team creates a PR: react-native-calendars+1.1307.0.patch PS: You can apply the patch making use of patch-package |
Description
Hello! I’m using the CalendarProvider to show a page with a
WeekCalendar
and anAgendaList
working together. Everything looks good except for a delay when tapping on a day in the WeekCalendar. I’m attaching a video with this issue.I was digging into the code, and I found that there is a debounce of 1 second in the
scrollToSection
function that is causing this delay. I tried to remove the debounce, and the delay is gone.I'm not sure why this debounce is there, but maybe we can add a prop to decide whether to use the debounce or not?
Expected Behavior
When tapping a day in the WeekCalendar, the AgendaList scrolls immediately, and there is no noticeable delay between the tap in WeekCalendar and the scrolling.
Observed Behavior
When tapping a day in the WeekCalendar, there is a delay in scrolling the AgendaList to the day selected.
Environment
react-native-calendars@1.1289.0
react-native@0.65.2
This is happening on both iOS/Android emulators and physical devices.
Reproducible Demo
Video
Screen.Recording.2023-03-21.at.13.59.15.mov
The text was updated successfully, but these errors were encountered: