@maurofalcone/react-native-date-picker
v1.0.9
Published
A simple, customizable and lightweight calendar date picker for react-native
Downloads
23
Maintainers
Readme
react-native-date-picker
A simple, customizable and lightweight calendar date picker for react-native.
Installation
npm i @maurofalcone/react-native-date-picker
or
yarn add @maurofalcone/react-native-date-picker
Usage
import React, { useState } from "react"
import { DatePicker, DatePickerProps } from "@maurofalcone/react-native-date-picker"
const [selectedDate, setSelectedDate] = useState(new Date())
<DatePicker
onDateChange={(selectedDate) => {
setSelectedDate(selectedDate)
}}
maxDate={maxDate}
minDate={minDate}
selectedDate={selectedDate}
/>
License
MIT