{"id":19784022,"url":"https://github.com/alkafinance/react-native-amount-input","last_synced_at":"2025-06-28T12:33:09.227Z","repository":{"id":37821419,"uuid":"199705867","full_name":"alkafinance/react-native-amount-input","owner":"alkafinance","description":"⚛️ React Native JS-only amount (decimal) input component","archived":false,"fork":false,"pushed_at":"2023-01-07T08:16:00.000Z","size":3381,"stargazers_count":13,"open_issues_count":25,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-16T15:14:56.828Z","etag":null,"topics":["react-native","react-native-component"],"latest_commit_sha":null,"homepage":"","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/alkafinance.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}},"created_at":"2019-07-30T18:25:35.000Z","updated_at":"2024-06-29T23:13:08.000Z","dependencies_parsed_at":"2023-02-06T16:01:45.319Z","dependency_job_id":null,"html_url":"https://github.com/alkafinance/react-native-amount-input","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alkafinance/react-native-amount-input","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alkafinance%2Freact-native-amount-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alkafinance%2Freact-native-amount-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alkafinance%2Freact-native-amount-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alkafinance%2Freact-native-amount-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alkafinance","download_url":"https://codeload.github.com/alkafinance/react-native-amount-input/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alkafinance%2Freact-native-amount-input/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262284808,"owners_count":23287494,"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":["react-native","react-native-component"],"created_at":"2024-11-12T06:10:03.590Z","updated_at":"2025-06-28T12:33:09.164Z","avatar_url":"https://github.com/alkafinance.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-amount-input\n\n[![npm version](https://img.shields.io/npm/v/react-native-amount-input.svg)](https://www.npmjs.org/package/react-native-amount-input)\n[![CircleCI Status](https://img.shields.io/circleci/project/github/alkafinance/react-native-amount-input/master.svg)](https://circleci.com/gh/alkafinance/workflows/react-native-amount-input/tree/master)\n![license: MIT](https://img.shields.io/npm/l/react-native-amount-input.svg)\n![Supports iOS](https://img.shields.io/badge/platforms-ios-lightgrey.svg)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nReact Native JS-only amount (decimal) input component. Optimized for iOS.\n\n\u003cimg src=\"./.github/demo.gif\" width=\"auto\" height=\"640\"\u003e\n\n## Getting started\n\n`$ npm install react-native-amount-input --save`\n\n## Usage\n\nImport `AmountInput` and use it more or less like the regular `TextInput` component from React Native core.\n\n```javascript\nimport {AmountInput} from 'react-native-amount-input';\n\nfunction MyComponent() {\n  return (\n    \u003cView\u003e\n      \u003cAmountInput\n        currency=\"USD\"\n        defaultQuantity={defaultQuantity}\n        onChangeQuantity={handleChangeQuantity}\n      /\u003e\n    \u003c/View\u003e\n  );\n}\n```\n\n## Props\n\n- [Inherited `TextInput` props...](https://facebook.github.io/react-native/docs/textinput.html#props)\n\n- [`currency`](#currency)\n- [`defaultQuantity`](#defaultQuantity)\n- [`onChangeQuantity`](#onChangeQuantity)\n- [`TextInputComponent`](#TextInputComponent)\n\n---\n\n# Reference\n\n## Props\n\n### `currency`\n\nSets the currency for a fixed symbol prefix in the text input box. Has to be a [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code.\n\n| Type     | Required |\n| -------- | -------- |\n| `string` | No       |\n\n### `defaultQuantity`\n\nProvides an initial value that will change when the user starts typing.\n\n| Type     | Required |\n| -------- | -------- |\n| `number` | No       |\n\n### `onChangeQuantity`\n\nCallback that is called when the entered quantity changes. Changed quantity is passed as a single string argument to the callback handler.\n\n| Type             | Required |\n| ---------------- | -------- |\n| `number =\u003e void` | No       |\n\n### `TextInputComponent`\n\nSets the base text input component.\n\n| Type               | Required |\n| ------------------ | -------- |\n| `typeof TextInput` | No       |\n\n## License\n\n[MIT License](./LICENSE) © Alka, Inc\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falkafinance%2Freact-native-amount-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falkafinance%2Freact-native-amount-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falkafinance%2Freact-native-amount-input/lists"}