0.0.3 • Published 6 years ago

react-native-min-calendar v0.0.3

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

react-native-min-range-calendar

Example

  render(){
    let currentDate = new Date();
    
    return(
      <Calendar
        locale = {"ru"}
        mode = {"range"}
        userColors = {{
          
        }}
        minDate = {currentDate}
        maxRange = {10}
        fadeDuration = {500}
      />)
  }

Properties

PropTypeDefaultDesc
localeStringDevice languageCalendar localization. If not set the device language will be used.
userColorsObject{}Override colors. See below for details.
userStylesObject{}Override styles. See below for details.
minRangeNumber or falsefalseMinimal avaliable size of selected range.
maxRangeNumber or falsefalseMaximal avaliable size of selected range.
minDateDate or falsefalseMinimal avaliable date to be selected. .
maxDateDate or falsefalseMaximal avaliable date to be selected.
modeStringbothsingle, range or 'both. Give opportunity to select only one date, range, or both.
fadeDurationNumber300Month switching duration in ms.
|
|
|
|
|
|

Styles

If you want to change only colors of datepicker, you can use userColors property

If you need to customize styles, you can use userStyles property. UserStyles has higher priority than userColors.