CalendarPicker
CalendarPicker copied to clipboard
Calendar reverts to current month when I select either start date or end date in a future month.
I've been using this library for a while now and I love it.
Currently refactoring an app to use RN 0.70 and having an issue with react-native-calendar-picker v7.1.2.
When I select a date in the future, the date is stored correctly and shows on the calendar, but the calendar view switches to the current month. (see attached screen grabs).

Good to hear that you've been using this library successfully. The issue you described sounds like a state bug. Are you passing in the prop selectedStartDate ? If not, try passing that value in from the user's selection.
I don't have resources to debug this unfortunately. Please submit a PR if you find a bug. Use the sample app to recreate it and fix the CalendarPicker source files.
Thanks for the response. Yes, I'm passing selectedStartDate. I'll dig in myself.
From: Peace @.> Sent: Wednesday, October 5, 2022 9:59 AM To: stephy/CalendarPicker @.> Cc: David Feldt @.>; Author @.> Subject: Re: [stephy/CalendarPicker] Calendar reverts to current month when I select either start date or end date in a future month. (Issue #328)
Good to hear that you've been using this library successfully. The issue you described sounds like a state bug. Are you passing in the prop selectedStartDate ? If not, try passing that value in from the user's selection. I don't have resources to debug this unfortunately. Please submit a PR if you find a bug. Use the sample apphttps://github.com/stephy/CalendarPicker#sample-application to recreate it and fix the CalendarPicker source files.
— Reply to this email directly, view it on GitHubhttps://github.com/stephy/CalendarPicker/issues/328#issuecomment-1268476116, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAESF4IFOQOW34XZZ5IK6ITWBWCSTANCNFSM6AAAAAAQ4WHHKY. You are receiving this because you authored the thread.Message ID: @.***>
Hi , any solution found for this issue?
Try 8.0.3 which fixed a bug with selected date. See #376