{"id":4350,"url":"https://github.com/yasaricli/react-native-counters","last_synced_at":"2026-03-06T12:04:41.775Z","repository":{"id":57336273,"uuid":"150693765","full_name":"yasaricli/react-native-counters","owner":"yasaricli","description":"React native Minus(-) (Number) Plus(+) Component","archived":false,"fork":false,"pushed_at":"2024-02-28T23:43:38.000Z","size":1646,"stargazers_count":35,"open_issues_count":6,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-04T18:42:08.693Z","etag":null,"topics":["component","minus","plus","react","react-na"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-native-counters","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/yasaricli.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":"2018-09-28T06:11:46.000Z","updated_at":"2024-08-10T06:09:08.000Z","dependencies_parsed_at":"2024-01-08T01:02:53.832Z","dependency_job_id":"5cf770b8-d78d-41c9-94c4-eb4d40add334","html_url":"https://github.com/yasaricli/react-native-counters","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/yasaricli/react-native-counters","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasaricli%2Freact-native-counters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasaricli%2Freact-native-counters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasaricli%2Freact-native-counters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasaricli%2Freact-native-counters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yasaricli","download_url":"https://codeload.github.com/yasaricli/react-native-counters/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasaricli%2Freact-native-counters/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30175919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T11:48:51.886Z","status":"ssl_error","status_checked_at":"2026-03-06T11:48:51.460Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["component","minus","plus","react","react-na"],"created_at":"2024-01-05T20:17:09.163Z","updated_at":"2026-03-06T12:04:36.764Z","avatar_url":"https://github.com/yasaricli.png","language":"JavaScript","funding_links":[],"categories":["Components"],"sub_categories":["UI"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/yasaricli/react-native-counters/blob/master/Kapture.gif\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cb\u003eReact native Minus(-) (Number) Plus(+) Component\u003c/b\u003e\n\u003c/p\u003e\n\n## Installation\n\nTo install a stable release use:\n\n##### yarn\n`yarn add react-native-counters`\n\n##### npm\n`npm i react-native-counters --save`\n\n\n## Example\nSimple use only uses the Text plus minus component.\n\n```JS\nimport Counter from \"react-native-counters\";\n\nclass Example Component {\n  onChange(number, type) {\n    console.log(number, type) // 1, + or -\n  }\n  \n  render() {\n    return (\n      \u003cCounter start={1} onChange={this.onChange.bind(this)} /\u003e\n    )\n  }\n}\n```\n\nFor all uses [ALL_USES](docs/ALL_USES.md)\n\nIf you want to **customize** `(minusIcon, plusIcon)` the buttons [USE_CUSTOM_ICON](docs/USE_CUSTOM_ICON.md)\n\n\n### Props\n\nSome default props and descriptions.\n\n\n| PropName        |                      Description                      |     type | Default |\n|-----------------|:-----------------------------------------------------:|---------:|--------:|\n| minus           |  If you are not using minusIcon, it shows directly.   |   String |       - |\n| plus            |   If you are not using plusIcon, it shows directly.   |   String |       + |\n| start           |                  The starting number                  |   Number |       0 |\n| min             |          Minus the minimum selected number.           |   Number |       0 |\n| max             |              The most selectable number.              |   Number |      10 |\n| minusIcon       |        You can use it to change the minusIcon.        | Function |    null |\n| plusIcon        |        You can use it to change the plusIcon.         | Function |    null |\n| buttonStyle     |       You can change the types of all buttons.        |   Object |      {} |\n| buttonTextStyle |          Minus or plus styles in the button           |   Object |      {} |\n| countTextStyle  |             styles of increasing number.              |   Object |      {} |\n| increment       | You can use it to change the increment between steps. |   Number |       1 |\n\n\n### Contributing\n\nThis project exists thanks to all the people who contribute.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasaricli%2Freact-native-counters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyasaricli%2Freact-native-counters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasaricli%2Freact-native-counters/lists"}