Skip to content

Releases: vonovak/react-navigation-props-mapper

v3.1.0

17 Feb 18:07
Compare
Choose a tag to compare

What's Changed

  • Bump shelljs from 0.8.4 to 0.8.5 in /example by @dependabot in #46
  • Bump nanoid from 3.1.30 to 3.2.0 by @dependabot in #48
  • Bump nanoid from 3.1.30 to 3.2.0 in /example by @dependabot in #49
  • Bump follow-redirects from 1.14.5 to 1.14.7 in /example by @dependabot in #47
  • Bump follow-redirects from 1.14.7 to 1.14.8 in /example by @dependabot in #50
  • feat: allow usage of wrapped components outside of navigator by @vonovak in #52

Full Changelog: v3.0.0...v3.1.0

Release 3.0.0

11 Nov 15:43
Compare
Choose a tag to compare

3.0.0

Features

  • rewrite using TS, with type safety (#43) (2cfbee7)

BREAKING

  • withMappedNavigationParams was renamed to withForwardedNavigationParams
  • flow typings removed

v1.0.4

30 Mar 07:28
Compare
Choose a tag to compare
  • add support for theme #25

v2.0.0

28 Feb 08:35
Compare
Choose a tag to compare

This version supports react-navigation v5 and drops support for older versions.

If you've used this library with previous versions of react-navigation, this means you can forget about two steps of the v5 migration process! 🎉 See separate route prop and no more getParam.

Breaking

  • navigation props are passed from props.route.params now instead of props.navigation.state.params (this has changed in react-navigation v5)
  • screenProps were removed from react-navigation v5 so we do not pass them through
  • static navigationOptions were removed from react-navigation v5 so we do not support this either

v1.0.2

03 Jan 08:29
Compare
Choose a tag to compare

v1.0.1

16 Apr 20:59
Compare
Choose a tag to compare
  • fixed TS and Flow typings

v1.0.0

06 Apr 21:43
Compare
Choose a tag to compare

❌ Breaking

The module now exports a single function: withMappedNavigationParams. It replaces
withMappedNavigationAndConfigProps available previously:

withMappedNavigationParams will map navigation params passed to your screen component, and if you use static navigationOptions function, it will also map the params passed into that function. The same thing, but a better name.

🎉 New features

  • flow typings are included
  • the distributed code is compiled with Babel, which will make usage in Jest tests a little easier (no need to tell Jest to transform the module)
  • new wrappedComponent property to get the original component wrapped by withMappedNavigationParams() (see readme or tests)

v0.4.0

09 Feb 23:02
Compare
Choose a tag to compare

this release adds TS typings through #11 by @lucalas

v0.3.0

19 Jun 16:06
Compare
Choose a tag to compare

The HOCs from this package previously crashed if the navigation prop was not passed into them, now they will work even if navigation prop is not available.
Learn more about the motivation for this in the related PR.