Installations
npm install @dietime/react-native-date-picker
Releases
Unable to fetch releases
Developer
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
Yes
Node Version
18.17.1
NPM Version
9.6.7
Statistics
60 Stars
31 Commits
14 Forks
2 Watching
1 Branches
1 Contributors
Updated on 14 Nov 2024
Languages
TypeScript (99.02%)
JavaScript (0.98%)
Total Downloads
Cumulative downloads
Total Downloads
20,758
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
🎯 Try component at snack.expo.io
React Native customizable date picker component for iOS and Android. Designed using ScrollView. Looks identical on all devices.
💻 Example
💬 Installation
1. Add dependency to the project
1$ yarn add @dietime/react-native-date-picker
1$ npm install @dietime/react-native-date-picker --save
2. Import dependency
1import DatePicker from '@dietime/react-native-date-picker';
👩💻 Usage
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}
📚 Documentation
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 |
📃 License
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
- Info: project has a license file: LICENSE.md:0
- Info: FSF or OSI recognized license: MIT License: LICENSE.md:0
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
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
22 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6
- Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97
- Warn: Project is vulnerable to: GHSA-f5x2-xv93-4p23
- Warn: Project is vulnerable to: GHSA-gmpm-xp43-f7g6
- Warn: Project is vulnerable to: GHSA-pf27-929j-9pmm
- Warn: Project is vulnerable to: GHSA-327c-qx3v-h673
- Warn: Project is vulnerable to: GHSA-x4cf-6jr3-3qvp
- Warn: Project is vulnerable to: GHSA-mph8-6787-r8hw
- Warn: Project is vulnerable to: GHSA-7mhc-prgv-r3q4
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g
- Warn: Project is vulnerable to: GHSA-rxrc-rgv4-jpvx
- Warn: Project is vulnerable to: GHSA-7f53-fmmv-mfjv
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p
- Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
Score
1.7
/10
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 MoreOther packages similar to @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.