{"id":24539059,"url":"https://github.com/binbytes/react-native-simple-modal-picker","last_synced_at":"2025-04-15T04:22:54.413Z","repository":{"id":33012454,"uuid":"145512302","full_name":"binbytes/react-native-simple-modal-picker","owner":"binbytes","description":"React Native modal picker for both Android and iOS","archived":false,"fork":false,"pushed_at":"2023-01-04T12:15:03.000Z","size":1522,"stargazers_count":7,"open_issues_count":18,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T15:51:46.284Z","etag":null,"topics":["chooser","drop-down","modal","modal-dropdown","modal-picker","modal-selector","node-module","node-package","picker","react-native","selector"],"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/binbytes.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":"2018-08-21T05:42:32.000Z","updated_at":"2021-10-12T12:56:58.000Z","dependencies_parsed_at":"2023-01-14T23:15:15.592Z","dependency_job_id":null,"html_url":"https://github.com/binbytes/react-native-simple-modal-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/binbytes%2Freact-native-simple-modal-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binbytes%2Freact-native-simple-modal-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binbytes%2Freact-native-simple-modal-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binbytes%2Freact-native-simple-modal-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binbytes","download_url":"https://codeload.github.com/binbytes/react-native-simple-modal-picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249004601,"owners_count":21196903,"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":["chooser","drop-down","modal","modal-dropdown","modal-picker","modal-selector","node-module","node-package","picker","react-native","selector"],"created_at":"2025-01-22T16:14:52.494Z","updated_at":"2025-04-15T04:22:54.395Z","avatar_url":"https://github.com/binbytes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-simple-modal-picker\n\nEasy to use and fully customized modal picker for both iOS and Android. Have same look and feel in both plateform.\n\n## Installation\n\n`$ npm install react-native-simple-modal-picker --save`\n\n### Properties\n\n| Prop | DataType | Description | IsRequired |\n|---|---|---|---|\n|**`data`**|Array| Data in json format | true |\n|**`value`**|String|Name of field which you want tobe return on selection from array | true |\n|**`label`**|String|Name of field which you want tobe shown in list of selection | true |\n|**`onValueChange`**|function(value)|Will be called on item selection and get value as a argument| true |\n|**`renderRow`**|function(rowData)|Custom component for render row and get row data as a argument| false |\n\n## Usage\n\nHere full [example](https://github.com/binbytes/react-native-simple-modal-picker/tree/master/example) of package usage\n\n#### Simple Modal Picker\n\n```js\n\n\u003cPicker \n  ref={instance =\u003e this.simplePicker = instance} \n  data={this.data} \n  label={'name'} \n  value={'value'}\n  onValueChange={(value) =\u003e alert(value + ' selected')} /\u003e\n\n```\n\n![Simple](https://i.imgur.com/xcriwIC.gif)\n\n#### Modal Picker with Custom Row\n\n```js\n\n\u003cPicker \n  ref={instance =\u003e this.customRowPicker = instance} \n  data={this.data} \n  label={'name'} \n  value={'value'}\n  onValueChange={(value) =\u003e alert(value + ' selected')}\n  renderRow={(rowData) =\u003e \u003cText style={styles.rowStyle}\u003e{rowData.name}\u003c/Text\u003e} /\u003e\n\n```\n\n![Custom](https://i.imgur.com/NSZ0NfW.gif)\n\n#### DropDown View\n\n```js\n\n\u003cView\u003e\n  \u003cPicker \n    ref={instance =\u003e this.dropDownPicker = instance} \n    data={this.data} \n    label={'name'} \n    value={'value'}\n    onValueChange={(value, selectedIndex) =\u003e this.setState({selectedIndex})} /\u003e\n  \u003cView style={styles.subContainer}\u003e\n    \u003cTouchableOpacity style={styles.dropDownContainer} onPress={() =\u003e this.dropDownPicker.setModalVisible(true)}\u003e\n      \u003cText style={styles.dropDownText}\u003e{this.data[this.state.selectedIndex].name}\u003c/Text\u003e\n    \u003c/TouchableOpacity\u003e\n  \u003c/View\u003e\n\u003c/View\u003e\n\n```\n\n![DropDown](https://i.imgur.com/rPTVTh6.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinbytes%2Freact-native-simple-modal-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinbytes%2Freact-native-simple-modal-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinbytes%2Freact-native-simple-modal-picker/lists"}