React Native Android Currency Formatter. Native Module for a currency format with specified FORMAT locale.
npm install react-native-android-currency-formatterNative Module for a currency format with specified FORMAT locale.
#### npm
``sh`
npm install --save react-native-android-currency-formatter
#### yarn
`sh`
yarn add react-native-android-currency-formatter --save
Read before use Synchronous Method
`js
import AndroidCurrencyFormatter from 'react-native-android-currency-formatter';
// Synchronous Method
AndroidCurrencyFormatter.numberFormat(30000, 'USD', 'en', 'US'); // $30,000.00
// Asynchronous Method
AndroidCurrencyFormatter
.numberFormatAsync(1000000.25, 'USD', 'en', 'US')
.then(data => {
// $1,000,000.25
});
`
js
// Synchronous Method
// Returns currency format or 'N/A' if one of the arguments are not correct
numberFormat(amount, currencyCode, language, country)// Asynchronous Method
// Returns Promise with currency format or 'N/A' if one of the arguments are not correct
numberFormatAsync(amount, currencyCode, language, country)
`
$3
Type: Number
the number which will be converted to currency$3
Type: String
ISO 4217 currency code. Some codes$3
Type: String
An ISO 639 alpha-2 or alpha-3 language code, or a language subtag up to 8 characters in length.$3
Type: String` Check example/src/App.tsx file if you need more details.

Any contributions you make are greatly appreciated.
Please read the Contributions Guidelines to learn how to contribute to the repository and the development workflow.
MIT © Vasyl Stokolosa