xgfe / react-native-datepicker

react native datePicker component for both Android and IOS, useing DatePikcerAndroid, TimePickerAndroid and DatePickerIOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

talhabuzz opened this issue · comments

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: