title: In React Native calendar picker, I want to disable some dates by giving a function
body: <p>I have been working on a calendar topic (react-native-calendar-picker). If this does not work can you suggest me with a date picker dependency which has, range availability, disable dates and if possible to disable weekends. I am using moment.</p>
  <p>My code:</p>
  <pre><code>import CalendarPicker from 'react-native-calendar-picker';
  import moment from 'moment';
  &lt;CalendarPicker
            startFromMonday={true}
            allowRangeSelection={true}
            minDate={minDate}
            maxDate={maxDate}
            //disabledDates={[new Date('13/02/2021'), new Date('14/02/2021'), new Date('14/02/2021')]} tried so many forms too
            disabledDates={  Date(2021,2,13)}
            width={250}
            height={250}
            maxRangeDuration={10}
            todayBackgroundColor=&quot;#f2e6ff&quot;
            selectedDayColor=&quot;#7300e6&quot;
            selectedDayTextColor=&quot;#FFFFFF&quot;
            onDateChange={this.onDateChange}
          /&gt;
  </code></pre>