I have tried possible ways to disable current date from React Datepicker.
Below is my code.
<SingleDatePicker
showDefaultInputIcon
inputIconPosition={ICON_AFTER_POSITION}
date={input.value}
placeholder="Move Date"
numberOfMonths={input.numberOfMonths ? input.numberOfMonths : 1}
focused={meta.active}
openDirection="up"
onDateChange={value => {
const val = value && value.format ? value.format() : value;
input.onChange(val);
}}
onFocusChange={({ focused }) => {
if (focused) {
input.onFocus({ focused });
return;
}
input.onBlur();
}}
/>
If anyone disabled help me.