{"id":26447316,"url":"https://github.com/uraway/react-native-simple-time-picker","last_synced_at":"2025-04-09T06:11:06.333Z","repository":{"id":24578414,"uuid":"101963699","full_name":"uraway/react-native-simple-time-picker","owner":"uraway","description":"Simple Wrapper Component for @react-native-picker/picker","archived":false,"fork":false,"pushed_at":"2025-03-28T23:03:13.000Z","size":3439,"stargazers_count":36,"open_issues_count":39,"forks_count":23,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T00:19:42.200Z","etag":null,"topics":["android","ios","picker","react","react-native","timepicker"],"latest_commit_sha":null,"homepage":"https://snack.expo.io/@uraway/react-native-simple-time-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/uraway.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-08-31T05:41:58.000Z","updated_at":"2025-03-24T01:40:58.000Z","dependencies_parsed_at":"2023-12-01T05:28:08.964Z","dependency_job_id":"15a13c46-55f8-4750-9f8e-a18b87863fec","html_url":"https://github.com/uraway/react-native-simple-time-picker","commit_stats":{"total_commits":297,"total_committers":4,"mean_commits":74.25,"dds":0.3468013468013468,"last_synced_commit":"dd1b225eb195c631e48d915176307ba390cd06c9"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uraway%2Freact-native-simple-time-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uraway%2Freact-native-simple-time-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uraway%2Freact-native-simple-time-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uraway%2Freact-native-simple-time-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uraway","download_url":"https://codeload.github.com/uraway/react-native-simple-time-picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247987285,"owners_count":21028895,"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":["android","ios","picker","react","react-native","timepicker"],"created_at":"2025-03-18T13:51:43.142Z","updated_at":"2025-04-09T06:11:06.312Z","avatar_url":"https://github.com/uraway.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- prettier-ignore --\u003e\n| iOS | Android |\n| --- | --- |\n| \u003cimg src=\"./screenshots/iOS.png\" width=\"300\" /\u003e | \u003cimg src=\"./screenshots/Android.png\" width=\"300\" /\u003e |\n\nSimple wrapper component on [@react-native-picker/picker](https://www.npmjs.com/package/@react-native-picker/picker).\n\n## Install\n\n```\n# React Native\nnpm install react-native-simple-time-picker @react-native-picker/picker\nnpx pod-install\n\n# Expo\nexpo install react-native-simple-time-picker @react-native-picker/picker\n```\n\n## Usage\n\n```tsx\nimport React from 'react';\nimport {TimePicker, ValueMap} from 'react-native-simple-time-picker';\n\nconst YourApp = () =\u003e {\n  const [value, setValue] = useState\u003cValueMap\u003e({\n    hours: 1,\n    minutes: 0,\n    seconds: 0,\n  });\n  const handleChange = (newValue: ValueMap) =\u003e {\n    setValue(newValue);\n  };\n  return \u003cTimePicker value={value} onChange={handleChange} /\u003e;\n};\n```\n\n## Props\n\n\u003c!-- prettier-ignore --\u003e\n| Property         | Type                       | Default                | Description                                                                                  |\n| ---------------- | -------------------------- | ---------------------- | -------------------------------------------------------------------------------------------- |\n| value        | `{ hours: number, minutes: number, seconds: number, ampm?: 'am' \\| 'pm' }`  |  `{ hours: 0, minutes: 0, seconds: 0 }` | Controlled state               |\n| defaultValue | `{ hours: number, minutes: number, seconds: number, ampm?: 'am' \\| 'pm' }`  |  `{ hours: 0, minutes: 0, seconds: 0 }` | Controlled state               |\n| onChange         | Function                   |                        | Callback function for when values are changed `({ hours: number, minutes: number }) =\u003e void` |\n| pickerShows      | Array                      | `[\"hours\", \"minutes\"]` | Pickers to display (`e.g. [\"hours\", \"minutes\", \"seconds\"]`)                                  |\n| hoursUnit        | String                     | ''                     | Hours Unit for label                                                                         |\n| minutesUnit      | String                     | ''                     | Minutes Unit for label                                                                       |\n| secondsUnit      | String                     | ''                     | Seconds Unit for label                                                                       |\n| zeroPadding      | Boolean                    | false                  | Whether to pad numeric labels with zero                                                      |\n| textColor        | String                     |                        | Color of the picker item's text                                                              |\n| hoursInterval    | Integer                    | 1                      |                                                                                              |\n| minutesInterval  | Integer                    | 1                      |                                                                                              |\n| secondsInterval  | Integer                    | 1                      |                                                                                              |\n| emptyLabel       | String                     | undefined              | Enable empty option with this label                                                          |\n| isAmpm           | Boolean                    | false                  | Whether to display am/pm picker                                                              |\n| ampmLocalization | { am: string, pm: string } | { am: 'am', pm: 'pm' } | Label for am/pm picker items                                                                 |\n\n## Preview\n\nhttps://snack.expo.io/@uraway/react-native-simple-time-picker\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furaway%2Freact-native-simple-time-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furaway%2Freact-native-simple-time-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furaway%2Freact-native-simple-time-picker/lists"}