@ionic_unicorn
<IonItem lines="none" button onClick={() => datepickerRef.current.open()}>
if should be datepickerRef.current.open()