Closed dineshchaudhary923092 closed 3 years ago
Thank for using the library! It looks like you're sending an incorrect Date
object. Can you share the code of your implementation?
Really appreciate the response time. Thank you
const [month, setMonth] = useState(moment(new Date()).format('MM YYYY'))
const onValueChange = (event, newDate) => { setShowPicker(false); const selectedMonth = newDate || month; setMonth(selectedMonth); }
<MonthPicker onChange={onValueChange} value={month} minimumDate={new Date(2019, 12)} maximumDate={new Date(2025)} enableAutoDarkMode={true} outputFormat='MM YYYY' okButton="Select" />
Ohh, I see. You are sending a moment object with outputFormat. I have deprecated that prop to decouple the component. Just send a Date object, and handle the logic on your side, when calling onChange using the line you have in the useState. Let me know how it goes.
Working Perfectly, Thank you very much
Giving TypeError in both android and ios after upgrading to 1.4.1.