
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
react-native-international-number-input
Advanced tools
A number input with support for different numeral systems.
A wrapper over react-native's TextInput that accepts numbers in the specified numeral system.
In 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.
npm install react-native-international-number-input
yarn add react-native-international-number-input
The InternationalNumberInput is a thin wrapper over react-native's TextInput component. It accepts all props that TextInput does and some additional ones.
InternationalNumberInput is a managed/controlled component. You must manage the current state/value of the component as described below. Read more about controlled components..
import React from 'react';
import {
NumeralSystems,
InternationalNumberInput,
} from 'react-native-international-number-input';
const MyComponent = () => {
const [value, setValue] = React.useState(null);
return (
<InternationalNumberInput
value={value}
onChange={setValue}
numeralSystem={NumeralSystems.EasternArabic}
/>
);
};
Validates numbers based on the specified keyboardType.
keyboardType=decimal-pad would only allow decimal numbers to be inputted.keyboardType=number-pad would only allow integers to be inputted.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.
Returns null in the onChange callback when the input is invalid or non-existent/empty.
FAQs
A number input with support for different numeral systems.
The npm package react-native-international-number-input receives a total of 2 weekly downloads. As such, react-native-international-number-input popularity was classified as not popular.
We found that react-native-international-number-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.