Gathering detailed insights and metrics for react-native-calendar-range-picker
Gathering detailed insights and metrics for react-native-calendar-range-picker
Gathering detailed insights and metrics for react-native-calendar-range-picker
Gathering detailed insights and metrics for react-native-calendar-range-picker
react-native-calendar-picker
Calendar Picker Component for React Native
react-multi-date-picker
A simple React datepicker component for working with gregorian, persian, arabic and indian calendars with the ability to select the date by single, multiple, range and multiple range pickers.
@progress/kendo-react-dateinputs
React DateInput is a perfect input component for handling quick and efficient date values. KendoReact Date Inputs package
react-day-picker
Customizable Date Picker for React
npm install react-native-calendar-range-picker
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
85 Stars
57 Commits
24 Forks
4 Watching
25 Branches
1 Contributors
Updated on 07 Nov 2024
TypeScript (75.7%)
Java (13.01%)
Ruby (4.25%)
Objective-C (4.18%)
JavaScript (1.49%)
Objective-C++ (1.36%)
Cumulative downloads
Total Downloads
Last day
59.3%
196
Compared to previous day
Last week
7.2%
740
Compared to previous week
Last month
-47.8%
3,135
Compared to previous month
Last year
23.7%
35,380
Compared to previous year
3
2
3
A Simple react native calendar picker using Hooks.
yarn add react-native-calendar-range-picker
or
npm install react-native-calendar-range-picker --save
1import Calendar from "react-native-calendar-range-picker"; 2 3<View style={{ flex: 1 }}> 4 <Calendar 5 startDate="2024-03-05" 6 endDate="2024-03-12" 7 onChange={({ startDate, endDate }) => console.log({ startDate, endDate })} 8 /> 9</View>;
1<View style={{ height: 600 }}> 2 <Calendar 3 startDate="2024-03-05" 4 singleSelectMode 5 onChange={(date) => console.log(date)} 6 /> 7</View>
Common props you may want to specify include:
Properties | PropType | Description |
---|---|---|
onChange | func | (Required) Handler which gets executed on day press including date data.(start, end or single date) |
singleSelectMode | boolean | Only select single date. (default = false) |
pastYearRange | number | Amount of months allowed to scroll to the past. (default = 1) |
futureYearRange | number | Amount of months allowed to scroll to the future. (default = 2) |
locale | object | Can be localized by adding custom locales to locale object. |
startDate | string(YYYY-MM-DD) | Initially visible start date. |
endDate | string(YYYY-MM-DD) | Initially visible end date. |
initialNumToRender | number | FlatList initialNumToRender prop.(to protect slow initial render)(default = 7) |
flatListProps | FlatList Props | FlatList all props. |
isMonthFirst | boolean | Switch year and month order. (2024 April -> April 2024) |
disabledBeforeToday | boolean | Disable select day before today. |
disabledAfterToday | boolean | Disable select day after today. |
style | object | Customize style. |
1const CUSTOM_LOCALE = { 2 monthNames: [ 3 'January', 4 'February', 5 'March', 6 'April', 7 'May', 8 'June', 9 'July', 10 'August', 11 'September', 12 'October', 13 'November', 14 'December', 15 ], 16 dayNames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], 17 today: 'Today', 18 year: '', // letter behind year number -> 2024{year} 19 } 20 21<Calendar 22 locale={CUSTOM_LOCALE} 23 ... 24/>;
1<Calendar 2 style={{ 3 container: {}, 4 monthContainer: {}, 5 monthOverlayContainer: {}, 6 weekContainer:{}, 7 monthNameText: {}, 8 dayNameText: {}, 9 dayText: {}, 10 dayTextColor: '#f7f7f7', 11 holidayColor: 'rgba(0,0,0,0.5)', 12 todayColor: 'blue', 13 disabledTextColor: '#Hex', 14 selectedDayTextColor: '#Hex', 15 selectedDayBackgroundColor: '#Hex', 16 selectedBetweenDayTextColor: '#Hex', 17 selectedBetweenDayBackgroundTextColor: '#Hex', 18 }} 19 ... 20/>;
MIT
No vulnerabilities found.
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 0/26 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
40 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More