{"id":4278,"url":"https://github.com/milasevicius/react-native-timepicker","last_synced_at":"2025-08-04T00:32:45.135Z","repository":{"id":57340894,"uuid":"50740219","full_name":"milasevicius/react-native-timepicker","owner":"milasevicius","description":"React native custom timepicker (24 hours format) for iOS","archived":true,"fork":false,"pushed_at":"2017-10-21T13:57:13.000Z","size":25,"stargazers_count":25,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-23T16:36:29.461Z","etag":null,"topics":["react-native"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/milasevicius.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}},"created_at":"2016-01-30T19:09:20.000Z","updated_at":"2023-03-25T21:53:46.000Z","dependencies_parsed_at":"2022-09-08T02:22:07.512Z","dependency_job_id":null,"html_url":"https://github.com/milasevicius/react-native-timepicker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/milasevicius/react-native-timepicker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milasevicius%2Freact-native-timepicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milasevicius%2Freact-native-timepicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milasevicius%2Freact-native-timepicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milasevicius%2Freact-native-timepicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milasevicius","download_url":"https://codeload.github.com/milasevicius/react-native-timepicker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milasevicius%2Freact-native-timepicker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268634064,"owners_count":24281896,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["react-native"],"created_at":"2024-01-05T20:17:06.676Z","updated_at":"2025-08-04T00:32:44.864Z","avatar_url":"https://github.com/milasevicius.png","language":"Objective-C","funding_links":[],"categories":["Components","Others"],"sub_categories":["UI"],"readme":"# React Native TimePicker For iOS\nReact native custom timepicker (24 hours format) for iOS\n\n### Screenshots\n\n![screenshot](https://cloud.githubusercontent.com/assets/1790265/12737599/9714fd66-c962-11e5-8995-544b82da6f2c.png)\n\n### Installation\n\n```bash\n$ npm i react-native-timepicker --save\n```\n\n### Basic Usage\n\n```jsx\nimport React, {\n  AppRegistry,\n  Component,\n  View,\n  StyleSheet\n} from 'react-native';\n\nimport TimePicker from 'react-native-timepicker';\n\nexport default class App extends Component {\n  constructor() {\n    super();\n  }\n\n  _onValueChange = (hour, minute) =\u003e {\n    console.log(\"Selected time:\", hour, ':', minute);\n  };\n\n  render() {\n    return (\n      \u003cView style={styles.container}\u003e\n        \u003cTimePicker\n        style={styles.picker}\n        selectedHour={0}\n        selectedMinute={30}\n        minuteInterval={5}\n        onValueChange={this._onValueChange}\n        loop={true} /\u003e\n      \u003c/View\u003e\n    );\n  }\n};\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    backgroundColor: '#D9D9D9'\n  },\n\n  picker: {\n    backgroundColor: '#E5E5E5'\n  }\n});\n\nAppRegistry.registerComponent('App', () =\u003e App);\n```\n\n### Properties - Basic\n\n| Prop  | Default  | Type | Description |\n| :------------ |:---------------:| :---------------:| :-----|\n| selectedHour | 0 | `number` | Set default hour |\n| selectedMinute | 0 | `number` | Set default minute |\n| minuteInterval | 1 | `number` | Set interval at which minutes can be selected |\n| loop | false | `bool` | Set component wrap around property |\n| style | {...} | `style` | Set style for timepicker container |\n\n### Properties - Methods\n\n| Prop  | Params  | Type | Description |\n| :------------ |:---------------:| :---------------:| :-----|\n| onValueChange | `hour`, `minute` | `function` | onValueChange method is called when hours or minutes value was changed |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilasevicius%2Freact-native-timepicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilasevicius%2Freact-native-timepicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilasevicius%2Freact-native-timepicker/lists"}