Skip to content

Releases: joshswan/react-native-globalize

2.1.0

25 Aug 02:27
2.1.0
25a0f2f
Compare
Choose a tag to compare

New Stuff:

  • Added support for accessibilityLabel prop in all Formatted* Components

2.0.1

09 Apr 17:20
2.0.1
bb3201f
Compare
Choose a tag to compare

Changes:

  • Clarified required peer dependency versions: react >= 16.3.1 & react-native >= 0.55.0

2.0.0

09 Apr 00:33
2.0.0
17862c5
Compare
Choose a tag to compare

Breaking:

  • Requires react >= 16.3.1 & react-native >= 0.55.0
  • FormattedWrapper has been replaced with FormattedProvider (drop-in replacement)

New Stuff:

  • Now using the new React Context API. The flaws of the previous context implementation meant that context changes did not trigger re-renders across PureComponent boundaries. This is now fixed.
  • Added withGlobalize HOC to inject globalize prop into any component assuming FormattedProvider is at the root of the application. This allows easy programatic access to the globalize methods in any component you want to wrap, and the globalize prop will be updated when the locale/currency is changed on FormattedProvider.
  • Added a test suite 🎉

1.2.4

07 Apr 06:07
1.2.4
b6116ab
Compare
Choose a tag to compare

Updates:

  • Bundled CLDR data updated

1.2.3

04 Dec 07:32
1.2.3
4e011d3
Compare
Choose a tag to compare

Updates:

  • Insecure moment version upgraded

1.2.2

25 Aug 16:41
1.2.2
e3ecb6d
Compare
Choose a tag to compare

Bug Fixes:

1.2.1

23 Aug 17:23
1.2.1
d634def
Compare
Choose a tag to compare

Bug Fixes:

  • PropTypes now come from prop-types package instead of React

1.2.0

10 Aug 04:26
1.2.0
93cdb36
Compare
Choose a tag to compare

New Stuff:

  • FormattedCurrency and FormattedNumber both support a numberStyle prop that controls the formatting style of the resulting number. For example, setting numberStyle to code on FormattedCurrency changes the default $1.00 to 1.00 USD. See the README for all possible values.

1.1.0

05 May 19:36
1.1.0
b416f4a
Compare
Choose a tag to compare

New Stuff:

  • Missing message keys when using FormattedMessage or getMessageFormatter no longer throw. A warning via console.warn is used instead, which can be disabled using the warnOnMissingMessage prop of FormattedWrapper (defaults to true)
  • FormattedMessage and getMessageFormatter both support a defaultMessage prop/option that will be used if the message key does not exist in the current locale's message data. If no defaultMessage is supplied, the message key itself will be displayed
  • A note about customizing the included locales & currencies has been added to the README with instructions on forking the repo and generating a cldr.json file