xgfe / react-native-datepicker

react native datePicker component for both Android and IOS, useing DatePikcerAndroid, TimePickerAndroid and DatePickerIOS
MIT License
2.12k stars 725 forks source link

If i was select the day to 15 then show invalid date and mess up things. why this error because of day 15 #421

Open talhabuzz opened 4 years ago

talhabuzz commented 4 years ago

Issue

<DatePicker value={this.state.date} format="DD/MM/YYYY" minDate={this.state.minimumDate} maxDate= {this.state.maximumDate} is24Hour={false} confirmBtnText="Confirm" cancelBtnText="Cancel" customStyles={{ dateIcon: { position: 'absolute', left: 0, top: Responsive.height(25), marginLeft: 0 }, dateInput: { marginLeft: 36 } // ... You can check the source to find the other keys. }} hideText={true} onDateChange={(date) => {this.setDate(date)} }

    //  onChange={this.setDate} 
      />

Expected Behavior

Code

Environment

  1. react-native -v:
  2. node -v:
  3. npm -v:
  4. yarn --version:
  5. target platform: Android | iOS
  6. operating system: