Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 138163

React native DatePicker component: the wanted date disappear?

$
0
0

mycode

<DatePicker
                    style={{width: 170}}
                    date={this.state.date1}
                    mode="date"
                    placeholder="select date"
                    format="YYYY-MM-DD"
                    maxDate="2020-01-01"
                    minDate="2010-01-01"

                    confirmBtnText="Confirm"
                    cancelBtnText="Cancel"
                    customStyles={{
                    dateIcon: {
                        position: 'absolute',
                        left: 0,
                        top: 4,
                        marginLeft: 0
                    },
                    dateInput: {
                        marginLeft: 36
                    }
                    // ... You can check the source to find the other keys.
                    }}
                    onDateChange={(date) => {this.setState({date1: date})}}
                />

max and min date of this component are defined but the date between maxDate="2020-01-01" minDate="2010-01-01" are disappear like the above image:

enter image description here

other date that out maxDate="2020-01-01" minDate="2010-01-01" of are still appear

can someone tell me how to solve this problem


Viewing all articles
Browse latest Browse all 138163

Trending Articles



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