{"id":19311995,"url":"https://github.com/weblineindia/react-native-number-input","last_synced_at":"2026-05-14T01:32:37.275Z","repository":{"id":129984983,"uuid":"282230271","full_name":"weblineindia/React-Native-Number-Input","owner":"weblineindia","description":"A React Native based component for creating Number Input in your application.","archived":false,"fork":false,"pushed_at":"2020-08-13T10:19:40.000Z","size":184,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T02:26:31.559Z","etag":null,"topics":["currency-text-input","decimal-input","input-field","number-input","numeric-input","react-components","react-native","react-native-component","react-native-components","react-native-library","react-native-module","react-native-number-input","react-native-plugin","reactnative","reactnative-input-field","reactnativedemo"],"latest_commit_sha":null,"homepage":"https://www.weblineindia.com/software-development-resources.html","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/weblineindia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-07-24T13:42:27.000Z","updated_at":"2021-01-20T04:47:21.000Z","dependencies_parsed_at":"2023-06-09T13:45:26.653Z","dependency_job_id":null,"html_url":"https://github.com/weblineindia/React-Native-Number-Input","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/weblineindia%2FReact-Native-Number-Input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FReact-Native-Number-Input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FReact-Native-Number-Input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FReact-Native-Number-Input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weblineindia","download_url":"https://codeload.github.com/weblineindia/React-Native-Number-Input/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240415216,"owners_count":19797599,"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":["currency-text-input","decimal-input","input-field","number-input","numeric-input","react-components","react-native","react-native-component","react-native-components","react-native-library","react-native-module","react-native-number-input","react-native-plugin","reactnative","reactnative-input-field","reactnativedemo"],"created_at":"2024-11-10T00:32:04.194Z","updated_at":"2025-11-17T01:02:30.482Z","avatar_url":"https://github.com/weblineindia.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native - Number Input\n\nA React Native based component for creating Number Input in your application.\n\n## Table of Contents \n\n- [Demo](#demo)\n- [Installation](#installation)\n- [Caveats](#caveats)\n- [Supported versions](#supported-versions)\n- [Usage](#usage)\n- [Examples](#examples)\n- [Props](#props)\n- [Methods](#methods)\n- [Want to Contribute?](#want-to-contribute?)\n- [Collection of Components](#collection-of-components)\n- [Changelog](#changelog)\n- [License](#license)\n- [Keywords](#keywords)\n\n## Demo\n\n[![](Numeric.png)](https://github.com/weblineindia/React-Native-Number-Input/blob/master/Numeric.png)\n\n## Installation\n\n`$ npm install rn-weblineindia-number-input --save`\n\n## Caveats\n\nAndroid currently does not implement the Intl object so a polyfill is required. At the moment it only includes the en locale.\n\n## Supported versions\n\nWe have tested this component in ReactNative 0.60 - 0.62.5. You can still use it in other versions.\n\n## Usage\n\nTo use it, register Number-Input Component to the navigation stack\n\n```javascript\nimport NumberTextInput from 'rn-weblineindia-number-input';\n\n \u003cNumberTextInput\n  type='currency'\n  locale='en-IN'\n  currency='INR'\n  decimalPlaces={2}\n  value={this.state.textInput1}\n  onUpdate={(value) =\u003e this.setState({ textInput1: value })}\n  style={styles.textInputStyle}\n  returnKeyType={'done'}\n  allowNegative={true}\n /\u003e\n```\n\n## Examples\n\nCurrency\n\n```javascript\n\u003cNumberTextInput\n  type='currency'\n  locale='en-IN'\n  currency='INR'\n  decimalPlaces={2}\n  value={this.state.textInput1}\n  onUpdate={(value) =\u003e this.setState({ textInput1: value })}\n  style={styles.textInputStyle}\n  returnKeyType={'done'}\n /\u003e\n```\n\nDecimal\n\n```javascript\n\u003cNumberTextInput\n type='decimal'\n decimalPlaces={2}\n value={this.state.textInput2}\n onUpdate={(value) =\u003e this.setState({ textInput2: value })}\n style={styles.textInputStyle}\n returnKeyType={'done'}\n/\u003e\n```\n\n## Props\n\n| **Props**       | **Type** | **Required** | **Description**                                                                                                                      |\n|-----------------|----------|--------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| value           | `Number` | Yes          | If not provided, will default to 0                                                                                                   |\n| type            | `string` | no           | Either decimal or currency. If not provided, will default to decimal. If type is currency,you'll also need to supply a currency prop.|\n| decimalPlaces   | `Number` | no           | Number - the number of decimal places to display. Only valid for decimal type.                                                       |\n| placeholderImage| `string` | no           | To show default image when image has issue.Required local image path.                                                                |\n| currency        | `string` | no           | The ISO 4217 currency code of the currency to display. Defaults to EUR.                                                              |\n| locale          | `string` | no           | A BCP 78 language tag specifying the locale used for number formatting. Defaults to de-DE                                            |\n| useGrouping     | `Boolean`| no           | Whether to use grouping separators. Defaults to true.                                                                                |\n| returnKeyType   | `string` | no           | Default is Done                                                                                                                      |\n| prefix          | `string` | no           | Add a prefix before the number                                                                                                       |\n| postfix         | `string` | no           | Add a prefix after the number                                                                                                        |\n| allowNegative   | `Boolean`| no           | Allowed negative sign. default is false                                                                                              |\n\n\n## Methods\n\n| **Method**           | **Description**                                                             |\n|----------------------|-----------------------------------------------------------------------------|\n| onUpdate             | Callback that is called when the text input's content size changes.         |\n\n\n## Want to Contribute?\n\n- Created something awesome, made this code better, added some functionality, or whatever (this is the hardest part).\n- [Fork it](http://help.github.com/forking/).\n- Create new branch to contribute your changes.\n- Commit all your changes to your branch.\n- Submit a [pull request](http://help.github.com/pull-requests/).\n\n-----\n\n## Collection of Components\n\nWe have built many other components and free resources for software development in various programming languages. Kindly click here to view our [Free Resources for Software Development](https://www.weblineindia.com/software-development-resources.html).\n\n------\n\n## Changelog\n\nDetailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).\n\n------\n\n## License\n\n[MIT](LICENSE)\n\n[mit]: https://github.com/weblineindia/React-Native-Number-Input/blob/master/LICENSE\n\n------\n\n### Keywords\n\n rn-weblineindia-number-input, react-native-number-input, number-input, numeric-input, reactnative-input-field\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Freact-native-number-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweblineindia%2Freact-native-number-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Freact-native-number-input/lists"}