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 customizable date picker component for iOS and Android. Designed using ScrollView.
npm install @dietime/react-native-date-picker
Typescript
Module System
Node Version
NPM Version
TypeScript (99.02%)
JavaScript (0.98%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
61 Stars
31 Commits
14 Forks
1 Watchers
1 Branches
1 Contributors
Updated on Apr 22, 2025
Latest Version
1.2.1
Package Id
@dietime/react-native-date-picker@1.2.1
Unpacked Size
68.85 kB
Size
12.55 kB
File Count
10
NPM Version
9.6.7
Node Version
18.17.1
Published on
Aug 26, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
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.
Add dependencies to the project
1yarn add @dietime/react-native-date-picker 2 3npm install @dietime/react-native-date-picker --save
Install additional dependencies
1yarn add expo-linear-gradient 2 3npm install expo-linear-gradient --save
Then, import with ...
1import DatePicker from '@dietime/react-native-date-picker';
If you are not using Expo
You should also follow these additional installation instructions.
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 |
example
Simple project with date picker. It is presented on gif.src
Source code of date picker.lib
Shared packages.
commonjs
Package built as common js library.module
Package built as module.typescript
Built files for static typing.Source code is made available under the MIT license. Some dependencies may be licensed differently.
You can support me so that there will be more good open source projects in the future
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- 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
24 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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