Gathering detailed insights and metrics for @dietime/react-native-date-picker
Gathering detailed insights and metrics for @dietime/react-native-date-picker
Gathering detailed insights and metrics for @dietime/react-native-date-picker
Gathering detailed insights and metrics for @dietime/react-native-date-picker
react-native-date-picker
A datetime picker for React Native. In-modal or inlined. Supports Android and iOS.
react-native-modal-datetime-picker
A react-native datetime-picker for Android and iOS
react-date-picker
A date picker for your React app.
react-time-picker
A time picker for your React app.
npm install @dietime/react-native-date-picker
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
60 Stars
31 Commits
14 Forks
2 Watching
1 Branches
1 Contributors
Updated on 14 Nov 2024
TypeScript (99.02%)
JavaScript (0.98%)
Cumulative downloads
Total Downloads
Last day
566.7%
40
Compared to previous day
Last week
41.3%
171
Compared to previous week
Last month
2.9%
668
Compared to previous month
Last year
10.5%
6,209
Compared to previous year
🎯 Try component at snack.expo.io
React Native customizable date picker component for iOS and Android. Designed using ScrollView. Looks identical on all devices.
1$ yarn add @dietime/react-native-date-picker
1$ npm install @dietime/react-native-date-picker --save
1import DatePicker from '@dietime/react-native-date-picker';
1import React, {useState} from "react"; 2import {Text, View} from "react-native"; 3 4import DatePicker from "@dietime/react-native-date-picker"; 5 6export default function App() { 7 const [date, setDate] = useState(); 8 9 return ( 10 <View> 11 <Text>{date ? date.toDateString() : "Select date..."}</Text> 12 <DatePicker 13 value={date} 14 onChange={(value) => setDate(value)} 15 format="yyyy-mm-dd" 16 /> 17 </View> 18 ); 19}
Prop | Required | Type | Description |
---|---|---|---|
value | ✅ | Date or null or undefined | Initial date for component |
onChange | ✅ | (value: Date) : void | Callback on date change event |
height | ⛔ | number | Custom component height |
width | ⛔ | number or string | Custom component width such as 100 or '50%' |
fontSize | ⛔ | number | Custom digits font size |
textColor | ⛔ | string | Custom digits text color such as hex, rgb or rgba |
endYear | ⛔ | number | Max year in component, default is current year |
startYear | ⛔ | number | Min year in component, default is endYear - 100 |
markColor | ⛔ | string | Custom middle mark color such as hex , rgb or rgba |
markHeight | ⛔ | number | Custom height of middle mark |
markWidth | ⛔ | number or string | Custom width of middle mark such as 100 or '50%' |
fadeColor | ⛔ | string | Custom color for top and bottom fade effect only hex colors! |
format | ⛔ | string | Custom picker format like reshuffle of yyyy , mm , dd . Example: 'yyyy-mm-dd' or 'dd-mm-yyyy' and other |
Copyright 2023 Denis Glazkov glazzk.off@mail.ru
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 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 SAST tool detected
Details
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
22 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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