vlad-doru / react-native-calendar-datepicker

React-Native cross-platform, calendar component.
Apache License 2.0
85 stars 37 forks source link

Added range of dates selected feature in only days #13

Closed uriel888 closed 7 years ago

uriel888 commented 7 years ago

After searching for a while I found your calendar component is amazing to be included in my app, except that I need a range of days for my users to choose. So I add this little feature to this project for only 'Days'. The sample usage is like this:

      <Calendar
        selected={Moment().startOf('day')}
        selectedEnd={Moment().add(4, 'days').startOf('day')}
        minDate={Moment().startOf('day')}
        maxDate={Moment().add(1, 'years').startOf('day')}
      />

I hope this is helping.

vlad-doru commented 7 years ago

This would only support multiple day selection day, making it unsable. You should add a selectMultiple boolean option