{"id":19322464,"url":"https://github.com/johnborges/react-native-pickr","last_synced_at":"2026-05-18T02:06:53.777Z","repository":{"id":57339093,"uuid":"170050106","full_name":"johnborges/react-native-pickr","owner":"johnborges","description":"Cross platform picker built with react-native","archived":false,"fork":false,"pushed_at":"2019-04-26T04:56:26.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T13:55:35.659Z","etag":null,"topics":["react-native"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnborges.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-11T01:44:30.000Z","updated_at":"2019-04-26T04:56:28.000Z","dependencies_parsed_at":"2022-08-28T07:10:27.900Z","dependency_job_id":null,"html_url":"https://github.com/johnborges/react-native-pickr","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/johnborges%2Freact-native-pickr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnborges%2Freact-native-pickr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnborges%2Freact-native-pickr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnborges%2Freact-native-pickr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnborges","download_url":"https://codeload.github.com/johnborges/react-native-pickr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240427139,"owners_count":19799466,"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":["react-native"],"created_at":"2024-11-10T01:41:26.518Z","updated_at":"2026-05-18T02:06:48.746Z","avatar_url":"https://github.com/johnborges.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-pickr\n\n[![npm version](https://badge.fury.io/js/react-native-pickr.svg)](https://badge.fury.io/js/react-native-pickr)\n\nRenders a native picker component for iOS and Android. On iOS, the picker renders within a transparent `Modal` component fixed at the bottom of the screen. Androind uses the OOB `Picker`.\n\n![ios](http://johnborg.es/assets/dropdown_android.gif \"ios picker\")\n![android](http://johnborg.es/assets/dropdown_ios.gif \"android picker\")\n\n## Installation\n\n`yarn add react-native-pickr`\n\n## Props\n\n### `options`\nOptions that will populate the dropdown. Must be an array of objects in the format:\n`{ label: \u003cstring_label\u003e, value: \u003cstring | integer\u003e }`\n\n### `selectedOption`\nValue matching one of the items in options. Can be a string or an integer.\n\n### `onChange`\nCallback for when an item from options is selected. Called with the following parameter:\n\n- itemValue: item that was selected from options\n\n# Usage\n```javascript\nimport React, { Component } from 'react';\nimport Pickr from 'react-native-pickr';\n\nexport default class App extends Component {\n  constructor(props) {\n    super(props);\n    this.state = {\n      selectedUsState: 'NJ',\n    }\n    this._onChange = this._onChange.bind(this);\n  }\n\n  _onChange(value) {\n    this.setState({selectedUsState: value});\n  }\n\n  render() {\n    return (\n      \u003cPickr \n        options={[{label: 'New Jersey', value: 'NJ'}, {label: 'Pennsylvania', value: 'PA'}, {label: 'West Virginia', value: 'WV'}]} \n        selectedOption={this.state.selectedUsState} \n        onChange={this._onChange}\n      /\u003e\n    );\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnborges%2Freact-native-pickr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnborges%2Freact-native-pickr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnborges%2Freact-native-pickr/lists"}