2.0.0
Breaking:
- Requires
react >= 16.3.1
&react-native >= 0.55.0
FormattedWrapper
has been replaced withFormattedProvider
(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 injectglobalize
prop into any component assumingFormattedProvider
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 onFormattedProvider
. - Added a test suite 🎉