Skip to content

Releases: AwesomeLabs/react-native-format-currency

v1.0.0

10 Jan 00:50

Choose a tag to compare

Added

  • Initial stable release
  • Support for 165+ ISO 4217 currency codes
  • formatCurrency() function with proper symbol placement, thousands separators, and decimal formatting
  • getSupportedCurrencies() to list all available currencies
  • returnType option to return results as object ({ formatted, value, symbol }) instead of array
  • LRU cache (100 entries) for improved performance
  • clearFormatCache() and getFormatCacheSize() cache utilities
  • Full TypeScript support with exported types (FormatResult, FormatResultObject, CurrencyCode, CurrencyConfig, SupportedCurrency)
  • Zero runtime dependencies

Features

  • Handles negative amounts
  • Supports zero-decimal currencies (JPY, KRW)
  • Supports 3-decimal currencies (BHD, KWD, OMR)
  • Preserves extra decimal precision when provided
  • Added option to return result as an object instead of array
  • European format support (period for thousands, comma for decimals)

v0.0.5

30 Jan 22:14

Choose a tag to compare

Changes:

Added support for the following new currencies (#9, with thanks to @SYoder1):

✅ United Arab Emirates Dirham
✅ Bosnia and Herzegovina Convertible Mark
✅ Moldovan Leu
✅ Nigerian Naira
✅ Serbian Dinar

v0.0.4

09 Jan 22:30

Choose a tag to compare

Packages:

  • react-native-format-currency@0.0.4

Changes:

  • Added support for the following new currencies (#8, with thanks to @SYoder1):

✅ Barbadian Dollar
✅ Bolivian Boliviano
✅ Bahamian Dollar
✅ Costa Rican Colón
✅ Dominican Peso
✅ Guatemalan Quetzal
✅ Honduran lempira
✅ Jamaican dollar
✅ Nicaraguan Córdoba
✅ Panamanian balboa
✅ Peruvian Nuevo Sol
✅ Paraguayan Guaraní
✅ Salvadoran Colón
✅ Uruguayan Peso

v0.0.3

03 Aug 16:41
4e3cda4

Choose a tag to compare

🐛 Bug Fixes

  • Add generated declaration file (4e3cda4)

v0.0.2

29 Jul 15:06

Choose a tag to compare

Bug Fixes:

  • added .d.ts declaration file to avoid typescript error (#1)