{"id":25044964,"url":"https://github.com/sectorlabs/react-native-international-number-input","last_synced_at":"2025-10-13T15:40:16.751Z","repository":{"id":38892613,"uuid":"237178029","full_name":"SectorLabs/react-native-international-number-input","owner":"SectorLabs","description":"A numeric input field for react-native with support for different numeral systems.","archived":false,"fork":false,"pushed_at":"2023-01-05T11:24:59.000Z","size":2065,"stargazers_count":1,"open_issues_count":15,"forks_count":0,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-03-30T16:01:49.182Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/SectorLabs.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":"2020-01-30T09:18:47.000Z","updated_at":"2020-09-11T12:19:25.000Z","dependencies_parsed_at":"2023-02-04T03:03:50.838Z","dependency_job_id":null,"html_url":"https://github.com/SectorLabs/react-native-international-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/SectorLabs%2Freact-native-international-number-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SectorLabs%2Freact-native-international-number-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SectorLabs%2Freact-native-international-number-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SectorLabs%2Freact-native-international-number-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SectorLabs","download_url":"https://codeload.github.com/SectorLabs/react-native-international-number-input/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246395591,"owners_count":20770243,"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":[],"created_at":"2025-02-06T05:20:03.244Z","updated_at":"2025-10-13T15:40:16.637Z","avatar_url":"https://github.com/SectorLabs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-international-number-input\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![npm version](https://badge.fury.io/js/react-native-international-number-input.svg)](https://badge.fury.io/js/react-native-international-number-input)\n\nA wrapper over `react-native`'s `TextInput` that accepts numbers in the specified numeral system.\n\nIn plain English: a simple text input component that allows users to enter numbers in their native language. For example, Arabic speakers can enter Eastern-Arabic numbers. The application will receive the number translated/transformed to a `number`.\n\n## Installation\n### NPM\n\n    npm install react-native-international-number-input\n    \n### Yarn\n    \n    yarn add react-native-international-number-input\n\n## Usage\n### Full example\nThe `InternationalNumberInput` is a thin wrapper over react-native's [`TextInput`](https://facebook.github.io/react-native/docs/textinput) component. It accepts all props that `TextInput` does and some additional ones.\n\n`InternationalNumberInput` is a managed/controlled component. You **must** manage the current state/value of the component as described below. [Read more about controlled components.](https://reactjs.org/docs/forms.html#controlled-components).\n\n    import React from 'react';\n\n    import {\n        NumeralSystems,\n        InternationalNumberInput,\n    } from 'react-native-international-number-input';\n\n    const MyComponent = () =\u003e {\n        const [value, setValue] = React.useState(null);\n\n        return (\n            \u003cInternationalNumberInput\n                value={value}\n                onChange={setValue}\n                numeralSystem={NumeralSystems.EasternArabic}\n            /\u003e\n        );\n    };\n\n### Characteristics\n* Validates numbers based on the specified `keyboardType`.\n    * `keyboardType=decimal-pad` would only allow decimal numbers to be inputted.\n    * `keyboardType=number-pad` would only allow integers to be inputted.\n\n    `keyboardType` not only changes the keyboard type the user is shown but it also adds extra validation and prevents the user from entering invalid input.\n\n* Returns `null` in the `onChange` callback when the input is invalid or non-existent/empty.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsectorlabs%2Freact-native-international-number-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsectorlabs%2Freact-native-international-number-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsectorlabs%2Freact-native-international-number-input/lists"}