xgfe / react-native-datepicker

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

Unable to jump to current date #427

Open MOwais opened 3 years ago

MOwais commented 3 years ago

Issue There is no Today button

Expected Behavior A 'Today' button that jumps to current date

Version "react-native-datepicker": "^1.7.2", Code

                            <DatePicker
                                style={{ width: 200 }}
                                date={this.props.monitorInstallDate}
                                mode="date"
                                placeholder="select date"
                                format="MM/DD/YYYY"
                                minDate="01/05/2000"
                                maxDate="01/05/2050"
                                confirmBtnText="Confirm"
                                cancelBtnText="Cancel"

                                onDateChange={(date) => this.props.onDateChange(date)}

                            />

In addition to the cancel and confirm button, can I add my own custom 'Today' button to jump to the current date?