Open goskan93 opened 5 years ago
I updated expo sdk and react-native and now when I click on DatePicker element I recive an Exception
Exception in HostFunction: Malformed calls from JS: field sizes are different.
Should work like it used too with old version.
<DatePicker locale={'pt'} style={{width: SCREEN_WIDTH*0.65, borderWidth:0, marginBottom:20, marginTop:10, borderColor: 'transparent'}} date={this.state.DataValidade ? this.state.DataValidade : ""} mode="date" placeholder="Selecione uma data" format="DD/MM/YYYY" minDate={new Date()} maxDate="2040-01-01" confirmBtnText="Confirmar" cancelBtnText="Cancelar" onDateChange={(date) => this.onChangeText(date, 'DataValidade')} />
react-native -v
target platform
expo
I found it, it was enough to changemaxDate="2040-01-01" to maxDate={new Date(2040, 0, 1)}
maxDate="2040-01-01"
maxDate={new Date(2040, 0, 1)}
If you don't want to set maxDate and minDate, set those fields to null
Issue
I updated expo sdk and react-native and now when I click on DatePicker element I recive an Exception
Expected Behavior
Should work like it used too with old version.
Code
Environment
react-native -v
: 0.57.1 => 0.59.8target platform
: Androidexpo
: 32.0.0 => 33.0.0