yarn react-number-format 5.0.0
Major Release (v5) - React Number Format rewrite

latest releases: 5.4.2, 5.4.1, 5.4.0...
2 years ago

RNF v5 is complete rewrite with the aim of extensibility and smaller bundle size. Here are following changes on v5. Most of them are breaking change, but would take minimal effort from migrating from v4 to v5. See migration doc

Changes

  • React number format is broken into smaller Modules, NumericFormat and Pattern Format, so only things you need are exposed.
  • RNF provides lower level hooks and component (useNumericFormat, usePatternFormat) to allow full customisation. Check customisation doc.
  • customNumerals prop is removed in favour of outside customization, example
  • isNumericString prop is renamed to valueIsNumericString.

Don't miss a new react-number-format release

NewReleases is sending notifications on new releases.