React Native Calendar List Picker Components
npm install react-native-calendar-list-picker
import { CalendarList } from "react-native-calendar-list-picker";
// ...
const MyExample = () => {
return (
<CalendarList
modePress="multiple"
fullDateRange={[new Date('2022-01-01'), new Date('2022-03-31')]}
availableDateRange={[new Date('2022-02-01'), new Date('2022-03-31')]}
startDate={new Date('2022-02-16')}
endDate={new Date('2022-02-20')}
onSelectionDate={(
startDate: Date | undefined,
endDate: Date | undefined
) => {
console.log('startDate: ', startDate, 'endDate: ', endDate);
}}
/>
);
};
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT