IOS DatePicker - Select Today

hi,
The ‘DatePickerIOS’ component does not have a confirm or cancel button. This means I can’t select the current date since the date is picked using the onDateChange props. How do users select today or current date since this does not require any side effect that triggers the onDateChange?

Maybe you can use a button outside the DatePicker which change the selectedDay ?

For example, make a selectedDay in your state. And make a button which when the user click on in, make a setState({selectedDay = new Date()}) , and use this variable il the DatePicker component :

<DatePickerIOS
          date={this.state.selectedDate}
          onDateChange={this.setDate}
        />