HosseinShabani / react-native-modern-datepicker

A customizable calendar, time & month picker for React Native (including Persian Jalaali calendar & locale)
MIT License
573 stars 159 forks source link

How to select a predefined date when datepicker is opened ? #113

Closed franferns closed 1 year ago

franferns commented 1 year ago

Describe the bug How do i select a predefined date when the datepicker is opened ?

To Reproduce Steps to reproduce the behavior:

  1. Go to react-native-modern-datepicker
  2. A selected props is set to 14-09-2022
  3. When the date picker is shown the set date in the selected prop is not highlighted or selected same happens when set with the current prop too.

Expected behavior Set a prop a date value to show date selected when the datepicker is shown

Screenshots https://snack.expo.dev/@francis25/date-sample

Desktop (please complete the following information):

Ahmed-Imam commented 1 year ago

any updates on this ? @franferns where u able to solve this ?

franferns commented 1 year ago

No could not find any solution for this

franferns commented 1 year ago

any updates on this ? @franferns where u able to solve this ?

@Ahmed-Imam I tried this one https://www.npmjs.com/package/@react-native-community/datetimepicker . May be this could be help.