title: How to disable dates which is already selected startdate and enddate in react native
body: <p><strong>I m using react-native-calendar-picker library <br/>
  How to disable dates b/w selected startdate and enddate <br/>
  Please help me out!</strong>
  <br/> <a href="https://www.npmjs.com/package/react-native-calendar-picker" rel="nofollow noreferrer">https://www.npmjs.com/package/react-native-calendar-picker</a><br/></p>
  
  <pre><code>onDateChange(date, type) {
      //function to handle the date change 
      console.log("date",date,type)
      if (type === 'END_DATE') {
        this.setState({
          selectedEndDate:moment(date).format("YYYYMMDD"),
        });
      } else {
        this.setState({
          selectedStartDate: moment(date).format("YYYYMMDD"),
          selectedEndDate: null,
        });
      }
  
    }
  </code></pre>
  
  <p><br/>Here Render function<br/></p>
  
  <pre><code>  &lt;CalendarPicker
            startFromMonday={true}
            allowRangeSelection={true}
            minDate={minDate}
            maxDate={maxDate}
            weekdays={['Mon', 'Tue', 'Wed', 'Thur', 'Fri', 'Sat', 'Sun']}
            months={[
              'January',
              'Febraury',
              'March',
              'April',
              'May',
              'June',
              'July',
              'August',
              'September',
              'October',
              'November',
              'December',
            ]}
            previousTitle="Previous"
            nextTitle="Next"
            todayBackgroundColor="#e756001a"
            selectedDayColor="#FFC926"
            selectedDayTextColor="#000000"
            scaleFactor={375}
            textStyle={{
              fontFamily: 'Cochin',
              color: '#000000',
            }}
   onDateChange={this.onDateChange}
      /&gt;
  </code></pre>