react-native-datepicker icon indicating copy to clipboard operation
react-native-datepicker copied to clipboard

Unable to jump to current date

Open MOwais opened this issue 5 years ago • 0 comments

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?

MOwais avatar Aug 01 '20 23:08 MOwais