1.1.1 • Published 2 years ago

react-native-locale-number-input v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

React Native LocaleNumberInput

React Native LocaleNumberInput This is made to solve the problem of Numeric TextInput which is not supporting value format & input accept based on user device region for both Android and iOS.

Note: This library has a peer dependency:- react-native-localize. but you don't need to install manually this dependency.

Maintainers

This library is being maintained by Ranjan Sharma. It is self motivated work.
Feel free to provide your feedback, If you see any room for improvement in this, it really makes a difference.

Platform compatibility

This project is compatible with iOS, and Android

Getting Started

Installation

yarn add react-native-locale-number-input or npm install react-native-locale-number-input --save

This library support autolinking

Usage

Import the LocaleNumberInput component from react-native-locale-number-input and use it like so:

import React, { useState } from "react";
import { View } from "react-native";
import LocaleNumberInput from "react-native-locale-number-input";

// ...
const App = () => {
  const [inputValue, setInputValue] = useState<string>("");
  return (
    <View style={{ flex: 1 }}>
      <LocaleNumberTextInput
        inputValue={inputValue}
        handleChange={setInputValue}
      />
    </View>
  );
};

Props And Events

Contributing

Contributions are welcome

License

MIT