{"id":17700891,"url":"https://github.com/kuraydev/react-native-counter-input","last_synced_at":"2026-06-10T20:24:44.408Z","repository":{"id":55114305,"uuid":"300840898","full_name":"WrathChaos/react-native-counter-input","owner":"WrathChaos","description":"Counter Input with fully customizable options for React Native","archived":false,"fork":false,"pushed_at":"2023-07-10T19:59:07.000Z","size":32961,"stargazers_count":20,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T08:13:17.909Z","etag":null,"topics":["android","apple","counter","counters","google","input","ios","javascript","react","react-native","react-native-counter","text-input","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-10-03T09:14:42.000Z","updated_at":"2024-06-13T08:10:57.000Z","dependencies_parsed_at":"2024-06-21T14:25:41.187Z","dependency_job_id":null,"html_url":"https://github.com/WrathChaos/react-native-counter-input","commit_stats":{"total_commits":35,"total_committers":4,"mean_commits":8.75,"dds":0.2571428571428571,"last_synced_commit":"99de53a99d131121ce7eaf49a496e5661aae6d25"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":"WrathChaos/react-native-typescript-library-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WrathChaos%2Freact-native-counter-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WrathChaos%2Freact-native-counter-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WrathChaos%2Freact-native-counter-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WrathChaos%2Freact-native-counter-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WrathChaos","download_url":"https://codeload.github.com/WrathChaos/react-native-counter-input/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252839296,"owners_count":21812090,"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":["android","apple","counter","counters","google","input","ios","javascript","react","react-native","react-native-counter","text-input","typescript"],"created_at":"2024-10-24T17:43:35.747Z","updated_at":"2026-06-10T20:24:44.346Z","avatar_url":"https://github.com/WrathChaos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg alt=\"React Native Counter Input\" src=\"assets/logo.png\" width=\"1050\"/\u003e\n\n[![Counter Input with fully customizable options for React Native](https://img.shields.io/badge/-Counter%20Input%20with%20fully%20customizable%20options%20for%20React%20Native-orange?style=for-the-badge)](https://github.com/WrathChaos/react-native-counter-input)\n\n[![npm version](https://img.shields.io/npm/v/react-native-counter-input.svg?style=for-the-badge)](https://www.npmjs.com/package/react-native-counter-input)\n[![npm](https://img.shields.io/npm/dt/react-native-counter-input.svg?style=for-the-badge)](https://www.npmjs.com/package/react-native-counter-input)\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\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"React Native Counter Input\"\n        src=\"assets/Screenshots/RN-Counter-Input.png\" width=\"49%\" /\u003e\n  \u003cimg alt=\"React Native Counter Input\"\n        src=\"assets/Screenshots/RN-Counter-Input.gif\" width=\"49%\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"React Native Counter Input\"\n        src=\"assets/Screenshots/RN-Counter-Input-Horizontal.png\"  /\u003e\n\u003c/p\u003e\n\n# Installation\n\nAdd the dependency:\n\n```bash\nnpm i react-native-counter-input\n```\n\n## Peer Dependencies\n\n\u003ch5\u003e\u003ci\u003eIMPORTANT! You need install them\u003c/i\u003e\u003c/h5\u003e\n\n```js\n\"@freakycoder/react-native-bounceable\": \"\u003e= 0.1.1\",\n```\n\n# Usage\n\n## Import\n\n```jsx\nimport CounterInput from \"react-native-counter-input\";\n```\n\n## Fundamental Usage\n\n```jsx\n\u003cCounterInput\n  onChange={(counter) =\u003e {\n    console.log(\"onChange Counter:\", counter);\n  }}\n/\u003e\n```\n\n# Configuration - Props\n\n| Property                      |   Type    |  Default  | Description                                                                               |\n|-------------------------------|:---------:|:---------:|-------------------------------------------------------------------------------------------|\n| style                         |   style   |  default  | change/override the main container style                                                  |\n| horizontal                    |  boolean  |   false   | make the button horizontal design                                                         |\n| initial                       |  number   |     0     | set the initial value for the counter input                                               |\n| onChange                      | function  | undefined | set your own logic for onChange method, it triggers on any change                         |\n| onChangeText                  | function  | undefined | it triggers when the TextInput changes                                                    |\n| onIncreasePress               | function  | undefined | it triggers when the increase button is pressed                                           |\n| onDecreasePress               | function  | undefined | it triggers when the decrease button is pressed                                           |\n| backgroundColor               |  string   |   #fff    | change the CounterInput's background color                                                |\n| min                           |  number   | undefined | set a minimum input value                                                                 |\n| max                           |  number   | undefined | set a maximum input value                                                                 |\n| reverseCounterButtons         |  boolean  |   false   | reverse the counter buttons                                                               |\n| increaseButtonBackgroundColor |  string   |  #0b349a  | change the CounterInput's active increase button background color                         |\n| decreaseButtonBackgroundColor |  string   |  #0b349a  | change the CounterInput's active decrease button background color                         |\n| ImageComponent                | component |   Image   | set your own Image component instead of default `RN Image` component such as; `FastImage` |\n\n## Future Plans\n\n- [x] ~~LICENSE~~\n- [x] ~~Horizontal Feature~~\n- [ ] Animation\n- [x] ~~Reverse Horizontal +/- Buttons Option~~\n- [ ] Write an article about the lib on Medium\n\n## Credits\n\nHeavily Inspired by [Enes Kargıcı](https://dribbble.com/shots/6530185-Beats-Mobile-App-Concept-Design), thank you so much!\n\n## Author\n\nFreakyCoder, kurayogun@gmail.com\n\n## License\n\nReact Native Counter Input 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%2Fkuraydev%2Freact-native-counter-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkuraydev%2Freact-native-counter-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuraydev%2Freact-native-counter-input/lists"}