{"id":17700851,"url":"https://github.com/wrathchaos/react-native-single-select","last_synced_at":"2025-08-08T17:07:33.547Z","repository":{"id":50123813,"uuid":"292822172","full_name":"WrathChaos/react-native-single-select","owner":"WrathChaos","description":"Customizable \u0026 Easy to Use Single Select Library for React Native","archived":false,"fork":false,"pushed_at":"2023-07-10T20:01:58.000Z","size":61683,"stargazers_count":84,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-17T21:21:00.966Z","etag":null,"topics":["apple","application","design","front-end","google","ios","javascript","mobile","mobile-app","picker","react","react-native","single-picker","single-select","typescript"],"latest_commit_sha":null,"homepage":"https://freakycoder.com","language":"TypeScript","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/WrathChaos.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}},"created_at":"2020-09-04T10:43:04.000Z","updated_at":"2024-08-25T18:54:43.000Z","dependencies_parsed_at":"2024-06-21T16:53:08.825Z","dependency_job_id":"46592972-6b10-49af-959b-e344f027bb84","html_url":"https://github.com/WrathChaos/react-native-single-select","commit_stats":{"total_commits":97,"total_committers":3,"mean_commits":"32.333333333333336","dds":0.2989690721649485,"last_synced_commit":"5a087035aa1596fc1a78b494784c8d479c268787"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":"WrathChaos/react-native-typescript-library-starter","purl":"pkg:github/WrathChaos/react-native-single-select","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WrathChaos%2Freact-native-single-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WrathChaos%2Freact-native-single-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WrathChaos%2Freact-native-single-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WrathChaos%2Freact-native-single-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WrathChaos","download_url":"https://codeload.github.com/WrathChaos/react-native-single-select/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WrathChaos%2Freact-native-single-select/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269457772,"owners_count":24420289,"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-08T02:00:09.200Z","response_time":72,"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":["apple","application","design","front-end","google","ios","javascript","mobile","mobile-app","picker","react","react-native","single-picker","single-select","typescript"],"created_at":"2024-10-24T17:43:28.831Z","updated_at":"2025-08-08T17:07:33.520Z","avatar_url":"https://github.com/WrathChaos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg alt=\"React Native Single Select\" src=\"assets/logo.png\" width=\"1050\"/\u003e\n\n[![Battle Tested ✅](https://img.shields.io/badge/-Battle--Tested%20%E2%9C%85-03666e?style=for-the-badge)](https://github.com/WrathChaos/react-native-single-select)\n\n[![Customizable \u0026 Easy to Use Single Select Library for React Native](https://img.shields.io/badge/-Customizable%20%26%20Easy%20to%20Use%20Single%20Select%20Library%20for%20React%20Native-orange?style=for-the-badge)](https://github.com/WrathChaos/react-native-single-select)\n\n[![npm version](https://img.shields.io/npm/v/@freakycoder/react-native-single-select.svg?style=for-the-badge)](https://www.npmjs.com/package/@freakycoder/react-native-single-select)\n[![npm](https://img.shields.io/npm/dt/@freakycoder/react-native-single-select.svg?style=for-the-badge)](https://www.npmjs.com/package/@freakycoder/react-native-single-select)\n![Platform - Android and iOS](https://img.shields.io/badge/platform-Android%20%7C%20iOS-blue.svg?style=for-the-badge)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=for-the-badge)](https://github.com/prettier/prettier)\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      \u003cb\u003eDark Theme\u003c/b\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003cb\u003eLight Theme\u003c/b\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg alt=\"React Native Internet Connection Alert\"\n        src=\"assets/Screenshots/React-Native-Single-Select-Dark-Theme.gif\"  /\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n    \u003cimg alt=\"React Native Internet Connection Alert\"\n        src=\"assets/Screenshots/React-Native-Single-Select-Light-Theme.gif\" /\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n# Installation\n\nAdd the dependency:\n\n```bash\nnpm i @freakycoder/react-native-single-select\nnpx pod-install // After Install the `react-native-spinkit`\n```\n\n## Peer Dependency\n\nYou need to install this dependency\n\n```bash\n\"react-native-spinkit\": \"^1.5.1\"\n```\n\n# Features\n\n- Light Mode ☀️\n- Dark Mode 🌙\n- TextInput 💬\n- Fully Animated Functionality 😍\n- Built-in Search Filter 🎊\n- Image Feature 💪\n- Custom Image Component Support 😋\n- Custom Text Component Support 😋\n- Many More...\n\n# Usage\n\n## Import\n\n```jsx\nimport RNSingleSelect, {\n  ISingleSelectDataType,\n} from \"@freakycoder/react-native-single-select\";\n```\n\n## Fundamental Usage\n\n```jsx\n\u003cRNSingleSelect\n  data={staticData}\n  darkMode\n  onSelect={(selectedItem: ISingleSelectDataType) =\u003e\n    console.log(\"SelectedItem: \", selectedItem)\n  }\n/\u003e\n```\n\n## Menu Item Format\n\nYou must use this format for generating menu bar item.\n\n```js\nconst staticData: Array\u003cISingleSelectDataType\u003e = [\n  { id: 0, value: \"Euismod Justo\" },\n  { id: 1, value: \"Risus Venenatis\" },\n  { id: 2, value: \"Vestibulum Ullamcorper\" },\n  { id: 3, value: \"Lorem Nibh\" },\n  { id: 4, value: \"Ligula Amet\" },\n];\n```\n\n**OR** with `ImageSource`\n\n```js\nconst staticData: Array\u003cISingleSelectDataType\u003e = [\n  { id: 0, value: \"Euismod Justo\", imageSource: require(\"./assets/..\") },\n  { id: 1, value: \"Risus Venenatis\", imageSource: { uri: \"...url\" } },\n  { id: 1, value: \"Risus Venenatis\", imageSource: null },\n];\n```\n\nAlso, here is the interface of ISingleSelectDataType:\n\n```js\nexport interface ISingleSelectDataType {\n  id: number;\n  value: string;\n  imageSource?: any;\n  data?: any;\n}\n```\n\n# Configuration - Props\n\n| Property               |             Type             |    Default    | Description                                                                                                     |\n| ---------------------- | :--------------------------: | :-----------: | --------------------------------------------------------------------------------------------------------------- |\n| onSelect               |           function           |   undefined   | set the selection function when a menu item is selected                                                         |\n| data                   | Array\u003cISingleSelectDataType\u003e |   undefined   | set the menu item data array for generating menu bar items                                                      |\n| width                  |            number            |      250      | change the width of the component                                                                               |\n| height                 |            number            |      50       | change the height of the main single select button                                                              |\n| darkMode               |           boolean            |     false     | change the theme of the component to `dark theme`                                                               |\n| placeholder            |            string            |   \"Select\"    | change the placeholder of the single select component                                                           |\n| imageHeight            |            number            |      25       | change the image source's menu item's image height                                                              |\n| imageWidth             |            number            |      25       | change the image source's menu item's image width                                                               |\n| ImageComponent         |          component           |     Image     | set your own custom Image component instead of default `Image` one                                              |\n| TextComponent          |          component           |     Text      | set your own custom Text component instead of default `Text` one                                                |\n| buttonContainerStyle   |          ViewStyle           |    default    | change/override the top of the single select button (the main one)                                              |\n| menuBarContainerStyle  |          ViewStyle           |    default    | change/override the top of the single select bottom menu bar                                                    |\n| arrowImageStyle        |          ImageStyle          |    default    | change/override the top of the arrow image's style                                                              |\n| menuItemTextStyle      |          TextStyle           |    default    | change/override the top of the each menu bar's item text style                                                  |\n| disableAbsolute        |           boolean            |     false     | if you do not want to use the library without absolute to fix bottom menubar's `overlaps` simply make it `true` |\n| menuBarContainerWidth  |            number            |      250      | change the bottom menu bar's width                                                                              |\n| menuBarContainerHeight |            number            |      150      | change the bottom menu bar's height                                                                             |\n| disableFilterAnimation |           boolean            |     false     | disable the filter animation for huge lists (especially on Android)                                             |\n| onTextChange           |           function           |   undefined   | handle the onTextChange function                                                                                |\n| placeholderTextStyle   |            style             |    default    | extends or override the default placeholder's text style                                                        |\n| placeholderTextColor   |            color             |    default    | change the placeholder's text color                                                                             |\n| spinnerType            |            string            | \"ThreeBounce\" | change the spinner type                                                                                         |\n| spinnerSize            |            number            |      30       | change the spinner size                                                                                         |\n| spinnerColor           |            color             |    default    | change the spinner color                                                                                        |\n| initialValue           |    ISingleSelectDataType     |     null      | change the initial selected item                                                                                |\n| searchEnabled          |           boolean            |     true      | change search inputs readonly state                                                                             |\n| value                  |            string            |   undefined   | set the text input value                                                                                        |\n| nestedScrollEnabled | boolean | false | enable/disable nested scrolling for the items\n\n## List of available types for Spinner\n\n- CircleFlip\n- Bounce\n- Wave\n- WanderingCubes\n- Pulse\n- ChasingDots\n- ThreeBounce\n- Circle\n- 9CubeGrid\n- WordPress (IOS only)\n- FadingCircle\n- FadingCircleAlt\n- Arc (IOS only)\n- ArcAlt (IOS only)\n\n## Future Plans\n\n- [x] ~~LICENSE~~\n- [x] ~~Search Feature~~\n- [x] ~~Image Feature~~\n- [x] ~~Customizable Image Component~~\n- [x] ~~Customizable Text Component~~\n- [x] ~~Dark Theme / Light Theme Options~~\n- [x] ~~More Customization for Colors~~\n- [x] ~~Built-in Spinner~~\n- [ ] Remove the `react-native-spinkit` and use `react-native-animated-spinkit` instead\n- [ ] Customizable Animations\n- [ ] Write an article about the lib on Medium\n\n## Credits\n\nHeavily Inspired by [Manuel Rovira Dribbble](https://dribbble.com/shots/11248542/attachments/2856460?mode=media)\n\n## Author\n\nFreakyCoder, kurayogun@gmail.com\n\n## License\n\nReact Native Single Select is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwrathchaos%2Freact-native-single-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwrathchaos%2Freact-native-single-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwrathchaos%2Freact-native-single-select/lists"}