stephy / CalendarPicker

CalendarPicker Component for React Native
802 stars 371 forks source link

How to use handleOnPressDay to select a different date in different month #283

Open wthushan01 opened 3 years ago

wthushan01 commented 3 years ago

I tried using handleOnPressDay and only thing I could do was selecting a date of the current month. Can I use handleOnPressDay function to select a different date of a different month. If so, can someone please give me an example.

peacechen commented 3 years ago

handleOnPressDay should select a date on any month. However it may not change the visible month which is usually expected. To test this, use the method to select another month's date, then manually navigate to that month to see if it's selected. PR's are welcome. I encourage you to dive into the code and find a fix. This one should be straight-forward.

milan-digiuseppe-level commented 3 months ago

@wthushan01 @peacechen I gave it a shot, please take a look! https://github.com/stephy/CalendarPicker/pull/386