Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

I'm having problems using DatePicker with react native

$
0
0

I'm having problems using DatePicker with react nativewhen I'm using it, there are an error like this:render error a date or time must be specified as value propmy repository: my github repository

const [date, setDate] = useState(new Date());function changeDate(selectDate) {    if (event?.type === 'dismissed') {      setDate(date);      return;    }    setDate(selectDate);  }<DatePicker  format="DD/MM/YYY"  date={date}  onDateChange={changeDate} />

Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>