{"id":26103542,"url":"https://github.com/alluximx/react-native-option-picker","last_synced_at":"2025-04-12T17:41:46.253Z","repository":{"id":57338829,"uuid":"267375222","full_name":"alluximx/react-native-option-picker","owner":"alluximx","description":"Easy to use option picker component for React Native.","archived":false,"fork":false,"pushed_at":"2020-06-05T16:29:28.000Z","size":376,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-26T16:21:36.135Z","etag":null,"topics":["control","form","picker","radio","react","react-native","select"],"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/alluximx.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":"2020-05-27T16:48:21.000Z","updated_at":"2022-01-11T14:59:17.000Z","dependencies_parsed_at":"2022-09-16T19:30:50.458Z","dependency_job_id":null,"html_url":"https://github.com/alluximx/react-native-option-picker","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/alluximx%2Freact-native-option-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alluximx%2Freact-native-option-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alluximx%2Freact-native-option-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alluximx%2Freact-native-option-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alluximx","download_url":"https://codeload.github.com/alluximx/react-native-option-picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248608027,"owners_count":21132650,"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":["control","form","picker","radio","react","react-native","select"],"created_at":"2025-03-09T20:29:19.389Z","updated_at":"2025-04-12T17:41:46.229Z","avatar_url":"https://github.com/alluximx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-option-picker\n\nA simple and customizable React Native option picker tool.\n\n[![npm version](https://badge.fury.io/js/react-native-option-picker.svg)](https://badge.fury.io/js/react-native-option-picker)\n[![npm downloads](https://img.shields.io/npm/dm/react-native-option-picker.svg?style=flat-square)](https://www.npmjs.com/package/react-native-option-picker)\n\n\n\u003chr\u003e\n\u003cbr\u003e\n\n\u003cimg src=\"./react-native-option-picker.gif\" width=\"250\" height=\"500\"/\u003e\n\n\n## Getting Started\n\n### [View example on snack.expo.io](https://snack.expo.io/@gus_reyes01/react-native-option-picker)\n\n### Install\n\n```sh\n$ npm install react-native-option-picker\n```\n\n### Basic Usage\n\n```js\n\nimport {Picker} from 'react-native-option-picker';\n\nexport const CustomPicker = () =\u003e {\n\n    function _onPress(elem){\n        alert(JSON.stringify(elem));\n    }\n\n    return (\n        \u003cPicker\n            data={[\n                { id: '9', title: '9:00 AM', selected: false },\n                { id: '10', title: '10:00 AM', selected: true },\n                { id: '11', title: '11:00 AM', selected: false },\n            ]}\n            onPress={this._onPress}\n        /\u003e\n    );\n};\n\n```\n\n## Styling\n\n\n| Prop        | Description           | Type  |\n| ------------- |:-------------:| -----:|\n| **`style`**        |  Picker styling | Any |\n| **`optionStyle`**        |  Style for the idle option | Any |\n| **`selectedOptionStyle`**       | Style for the selected option      |  Any |\n| **`optionTextStyle`** | Style for the option text      |    Any |\n| **`selectedOptionTextStyle`** | Style for the selected option text      |    Any |\n\n\n## Methods\n\nMethods may be accessed through the instantiated component's [ref](https://reactjs.org/docs/react-component.html).\n\n| Prop                                  | Description                                                                                                                                                                                                                                                                                           |\n| ------------------------------------- | --------------------------------------------------------------------------------- |\n| **`onPress(element)`**               | Returns the selected element when an option is selected.   |\n\n\n## Contributing\n\nContributions are welcome!\n\n1. Fork it.\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\nOr open up [an issue](https://github.com/gusreyes01/react-native-option-picker/issues).\n\n\n## Contributors\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore --\u003e\n[\u003cimg src=\"https://avatars0.githubusercontent.com/u/2120129?v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eGustavo Reyes\u003c/b\u003e\u003c/sub\u003e](https://github.com/gusreyes01)\u003cbr /\u003e[💬](#question-alluximx \"Answering Questions\") [💻](https://github.com/alluximx/react-native-option-picker/commits?author=gusreyes01 \"Code\") \n\n\n## Discussion and Collaboration\n\nIn addition to the [Github Issues](https://github.com/alluximx/react-native-option-picker/issues) page\n\n## License\n\nLicensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falluximx%2Freact-native-option-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falluximx%2Freact-native-option-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falluximx%2Freact-native-option-picker/lists"}