{"id":16811002,"url":"https://github.com/lukebrandonfarrell/react-native-amazon-modal-picker","last_synced_at":"2025-06-11T22:37:33.674Z","repository":{"id":40313672,"uuid":"129249299","full_name":"lukebrandonfarrell/react-native-amazon-modal-picker","owner":"lukebrandonfarrell","description":"Amazon style inspired selection modal for React Native","archived":false,"fork":false,"pushed_at":"2023-04-24T23:59:59.000Z","size":1472,"stargazers_count":5,"open_issues_count":11,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-05T22:57:36.846Z","etag":null,"topics":["amazon-style","modal","picker","react-native","react-native-modal","react-native-picker","react-native-select","select","selection-modal"],"latest_commit_sha":null,"homepage":null,"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/lukebrandonfarrell.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,"zenodo":null}},"created_at":"2018-04-12T12:40:26.000Z","updated_at":"2021-11-14T16:33:46.000Z","dependencies_parsed_at":"2025-04-11T01:40:47.971Z","dependency_job_id":"4edfbe27-94a9-4360-b734-28898eb1c721","html_url":"https://github.com/lukebrandonfarrell/react-native-amazon-modal-picker","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lukebrandonfarrell/react-native-amazon-modal-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukebrandonfarrell%2Freact-native-amazon-modal-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukebrandonfarrell%2Freact-native-amazon-modal-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukebrandonfarrell%2Freact-native-amazon-modal-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukebrandonfarrell%2Freact-native-amazon-modal-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukebrandonfarrell","download_url":"https://codeload.github.com/lukebrandonfarrell/react-native-amazon-modal-picker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukebrandonfarrell%2Freact-native-amazon-modal-picker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259356022,"owners_count":22845166,"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":["amazon-style","modal","picker","react-native","react-native-modal","react-native-picker","react-native-select","select","selection-modal"],"created_at":"2024-10-13T10:17:24.054Z","updated_at":"2025-06-11T22:37:33.654Z","avatar_url":"https://github.com/lukebrandonfarrell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-amazon-modal-picker\n\n[![npm](https://img.shields.io/npm/v/react-native-amazon-modal-picker.svg?style=flat-square)](https://www.npmjs.com/package/react-native-amazon-modal-picker)\n[![npm licence](http://img.shields.io/npm/l/react-native-amazon-modal-picker.svg?style=flat-square)](https://npmjs.org/package/react-native-amazon-modal-picker)\n[![npm downloads](http://img.shields.io/npm/dt/react-native-amazon-modal-picker.svg?style=flat-square)](https://npmjs.org/package/react-native-amazon-modal-picker)\n\nReact Native selection modal inspired by Amazon's mobile application modal.\n\n\u003cimg align=\"left\" src=\"https://raw.githubusercontent.com/LukeBrandonFarrell/open-source-images/master/react-native-amazon-modal-picker/IMG-0450.jpg\" width=\"48%\" /\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/LukeBrandonFarrell/open-source-images/master/react-native-amazon-modal-picker/modal.gif\" width=\"48%\" /\u003e\n\n## Install\n\nTo get started install via npm:\n```sh\n npm install react-native-amazon-modal-picker --save\n```\n\n## Usage\n\nTo use in React Native. Import:\n```js\n import ModalSelect from 'react-native-amazon-modal-picker';\n```\n\nThen add it to your code:\n```js\n\u003cModalSelect\n  isVisible={this.state.modalOpen}\n  title='Selector'\n  labels={[...Array(30).keys()]}\n  onSelect={(value) =\u003e {\n    this.setState({ modalValue: value, modalOpen: false }); //\u003c- Closes Modal and sets value\n  }}\n  headerColor='#6e2ccd' /\u003e\n```\n\n## Props\n\n| Prop            | Type          | Optional  | Default              | Description                                                                             |\n| --------------- | ------------- | --------- | -------------------- | --------------------------------------------------------------------------------------- |\n| isVisible       | bool          | No        | false                | Is the modal visible?                                                                   |\n| onSelect        | func          | No        |                      | Function which gets called when a option is pressed. Value passed as parameter.         |\n| title           | string        | Yes       | 'Select'             | Tile of modal                                                                           |\n| labels          | array         | No        |                      | Array of labels to render in modal                                                      |\n| values          | array         | Yes       |                      | Custom values to pass to onSelect when item is clicked. Must be equal length to labels  |\n| headerColor     | string        | Yes       | '#CD2C2E'            | Colour of header                                                                        |\n\n## Todo\n\n- [ ] Use ListView to render items in modal instead of ScrollView\n\n## Contributing\n\nIf you want to issue a PR, go ahead ;)\n\n## Authors\n\n* [**Luke Brandon Farrell**](https://lukebrandonfarrell.com/) - *Author*\n\n## License\n\nThis project is licensed under the MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukebrandonfarrell%2Freact-native-amazon-modal-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukebrandonfarrell%2Freact-native-amazon-modal-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukebrandonfarrell%2Freact-native-amazon-modal-picker/lists"}