1.0.4 • Published 3 years ago

rn-horizontal-calendar v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

rn-horizontal-calendar

horizontal calendar

Installation

npm install --save rn-horizontal-calendar

or

yarn add rn-horizontal-calendar

Usage

const [selectedDate, setSelectedDate] = useState(new Date());

<HorizontalCalendar
  selectedDate={selectedDate}
  setSelectedDate={(date) => {
    setSelectedDate(date);
  }}
/>;

Props

PropsDescriptionRequiredDefault
selectedDatereturn selectedDatetrue
setSelectedDateget active datetrue
dateRangeshow date from today to number of days in the futurefalse365
renderItemrender custom date itemfalsenull

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

1.0.4

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago