You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TLDR: the bug is due to the fact that both WeekCalendar and CalendarList are used together, where the animation in bounceToPosition is unsynced from position tracking state.
For anybody experiencing the same issue I recommend fixing it manually and patching it using react-native-patch, while the PR is not merged.
Description
When collapsing the calendar into a week and tapping the date it sometimes gets incorrectly detected and moves to a different month.
Steps To Reproduce
Steps to reproduce the behavior:
Screenshots / Recording
rnc_bug_report.mov
Code Snippet
For a minimal, reproducible example just use a plain ExpandableCalendar wrapped in a Provider.
Expected Behavior
11th March keep being selected with
onDayPress
triggered.Observed Behavior
26th Feb is selected with both onMonthChange and onDayPress being triggered.
Environment (please complete the following information):
"react-native-calendars": "^1.1307.0",
"react-native": "0.74.5",
"expo": "~51.0.38",
Platform: Android & iOS
Device/Emulator: Attached reference from iOS simulator iPhone 13, iOS 15.2
The text was updated successfully, but these errors were encountered: