{"id":19473350,"url":"https://github.com/ethercreative/react-native-date-input","last_synced_at":"2025-10-05T16:35:59.735Z","repository":{"id":57336463,"uuid":"207551462","full_name":"ethercreative/react-native-date-input","owner":"ethercreative","description":"A simple React Native date input component that uses DatePickerAndroid and DatePickerIOS to select dates","archived":false,"fork":false,"pushed_at":"2020-06-01T14:35:27.000Z","size":32,"stargazers_count":9,"open_issues_count":3,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-17T02:01:01.066Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ethercreative.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-10T12:19:34.000Z","updated_at":"2023-12-23T04:40:22.000Z","dependencies_parsed_at":"2022-09-03T08:00:54.464Z","dependency_job_id":null,"html_url":"https://github.com/ethercreative/react-native-date-input","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethercreative%2Freact-native-date-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethercreative%2Freact-native-date-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethercreative%2Freact-native-date-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethercreative%2Freact-native-date-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethercreative","download_url":"https://codeload.github.com/ethercreative/react-native-date-input/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250817697,"owners_count":21492200,"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":[],"created_at":"2024-11-10T19:18:15.553Z","updated_at":"2025-10-05T16:35:59.629Z","avatar_url":"https://github.com/ethercreative.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-date-input\n\nA simple React Native date input component that uses `DatePickerAndroid` and `DatePickerIOS` to select dates\n\n## Installation\n\n```\nyarn add react-native-date-input dayjs react-native-appearance react-native-iphone-x-helper\ncd ios \u0026\u0026 pod install\n```\n\n## Usage\n\n```js\nimport React, { useState } from 'react';\nimport { DateInput } from 'react-native-date-input';\nimport dayjs from 'dayjs';\n\nexport default (props) =\u003e {\n  const [date, setDate] = useState('');\n  let dateInput = null;\n\n  const handleChange = (date) =\u003e {\n    setDate(date);\n  };\n\n  const focus = () =\u003e {\n    if (!dateInput) {\n      return;\n    }\n\n    dateInput.focus();\n  };\n\n  return (\n    \u003cDateInput\n      inputProps={{\n        style: {},\n        ...props,\n        // Supports all TextInput props\n      }}\n      dateFormat={'DD/MM/YYYY'}\n      defaultValue={new Date(dayjs().subtract(5, 'year').format('DD/MM/YYYY'))}\n      defaultDate={new Date(dayjs().subtract(5, 'year'))}\n      minimumDate={new Date(dayjs().subtract(10, 'year'))}\n      maximumDate={new Date()}\n      handleChange={handleChange}\n      onRef={(input) =\u003e (dateInput = input)}\n    /\u003e\n  );\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethercreative%2Freact-native-date-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethercreative%2Freact-native-date-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethercreative%2Freact-native-date-input/lists"}