{"id":28377249,"url":"https://github.com/dietime/react-native-date-picker","last_synced_at":"2025-07-05T20:10:22.760Z","repository":{"id":44548077,"uuid":"327476643","full_name":"DieTime/react-native-date-picker","owner":"DieTime","description":"React Native customizable date picker component for iOS and Android. Designed using ScrollView.","archived":false,"fork":false,"pushed_at":"2023-08-27T11:17:57.000Z","size":2086,"stargazers_count":61,"open_issues_count":3,"forks_count":14,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T01:23:19.769Z","etag":null,"topics":["date","datepicker","native","picker","react","react-native","select"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@dietime/react-native-date-picker","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DieTime.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-07T02:01:31.000Z","updated_at":"2025-04-22T06:54:39.000Z","dependencies_parsed_at":"2024-06-18T22:43:42.762Z","dependency_job_id":"c9fb2953-1fc3-46f9-8ae5-3a561a2180f3","html_url":"https://github.com/DieTime/react-native-date-picker","commit_stats":{"total_commits":31,"total_committers":2,"mean_commits":15.5,"dds":0.06451612903225812,"last_synced_commit":"1e719028b9019823786566ed35fa8edf62b67e97"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DieTime/react-native-date-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DieTime%2Freact-native-date-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DieTime%2Freact-native-date-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DieTime%2Freact-native-date-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DieTime%2Freact-native-date-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DieTime","download_url":"https://codeload.github.com/DieTime/react-native-date-picker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DieTime%2Freact-native-date-picker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262122639,"owners_count":23262446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["date","datepicker","native","picker","react","react-native","select"],"created_at":"2025-05-30T01:04:19.950Z","updated_at":"2025-06-26T18:31:42.416Z","avatar_url":"https://github.com/DieTime.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/DieTime/react-native-date-picker/raw/master/assets/logo.png\" style=\"margin-bottom: -30px\" width=\"320\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://snack.expo.io/@checkcompany/063372\"\u003e🎯 Try component at snack.expo.io\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Runs%20with%20Expo-000.svg?style=flat\u0026logo=EXPO\u0026labelColor=ffffff\u0026logoColor=000\" alt=\"npm type definitions\"/\u003e\n    \u003cimg src=\"https://img.shields.io/npm/types/@dietime/react-native-date-picker\" alt=\"npm type definitions\"/\u003e\n    \u003cimg src=\"https://img.shields.io/bundlephobia/min/@dietime/react-native-date-picker\" alt=\"npm bundle size\"/\u003e\n\u003c/p\u003e\n\nReact Native customizable date picker component for iOS and Android. Designed using ScrollView. Looks identical on all\ndevices.\n\n## 💻 Example\n\u003cimg style=\"margin-top: 10px\" src=\"https://github.com/DieTime/react-native-date-picker/raw/master/assets/example.gif\" height=\"400\" alt=\"component-gif-preview\"/\u003e\n\n## 💬 Installation\n\n### 1. Add dependency to the project\n\n```bash\n$ yarn add @dietime/react-native-date-picker\n```\n\n```bash\n$ npm install @dietime/react-native-date-picker --save\n```\n\n### 2. Import dependency\n\n```js\nimport DatePicker from '@dietime/react-native-date-picker';\n```\n\n## 👩‍💻 Usage\n\n```javascript\nimport React, {useState} from \"react\";\nimport {Text, View} from \"react-native\";\n\nimport DatePicker from \"@dietime/react-native-date-picker\";\n\nexport default function App() {\n    const [date, setDate] = useState();\n\n    return (\n        \u003cView\u003e\n            \u003cText\u003e{date ? date.toDateString() : \"Select date...\"}\u003c/Text\u003e\n            \u003cDatePicker\n                value={date}\n                onChange={(value) =\u003e setDate(value)}\n                format=\"yyyy-mm-dd\"\n            /\u003e\n        \u003c/View\u003e\n    );\n}\n```\n\n## 📚 Documentation\n\n| Prop       | Required | Type                      | Description                                                   |\n|:---------- |:--------:|:------------------------- | ------------------------------------------------------------- |\n| value      | ✅        | Date or null or undefined | Initial date for component                                    |\n| onChange   | ✅        | (value: Date) : void      | Callback on date change event                                 |\n| height     | ⛔        | number                    | Custom component height                                       |\n| width      | ⛔        | number or string          | Custom component width such as `100` or `'50%'`                   |\n| fontSize   | ⛔        | number                    | Custom digits font size                                       |\n| textColor  | ⛔        | string                    | Custom digits text color such as hex, rgb or rgba             |\n| endYear    | ⛔        | number                    | Max year in component, default is current year                |\n| startYear  | ⛔        | number                    | Min year in component, default is `endYear - 100`             |\n| markColor  | ⛔        | string                    | Custom middle mark color such as `hex`, `rgb` or `rgba`             |\n| markHeight | ⛔        | number                    | Custom height of middle mark                                  |\n| markWidth  | ⛔        | number or string          | Custom width of middle mark such as `100` or `'50%'`              |\n| fadeColor  | ⛔        | string                    | Custom color for top and bottom fade effect `only hex colors!` |\n| format     | ⛔        | string                    | Custom picker format like reshuffle of `yyyy`, `mm`, `dd`. Example: `'yyyy-mm-dd'` or `'dd-mm-yyyy'` and other |\n\n## 📃 License\n\nCopyright 2023 Denis Glazkov glazzk.off@mail.ru\n\nPermission 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:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdietime%2Freact-native-date-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdietime%2Freact-native-date-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdietime%2Freact-native-date-picker/lists"}