github react-navigation/react-navigation @react-navigation/drawer@7.0.0-alpha.0

latest releases: @react-navigation/stack@7.0.0-rc.26, @react-navigation/native-stack@7.0.0-rc.27, @react-navigation/material-top-tabs@7.0.0-rc.25...
pre-release19 months ago

7.0.0-alpha.0 (2023-02-17)

Bug Fixes

Code Refactoring

Features

BREAKING CHANGES

  • Initially the Link component was designed to work with path strings via the to prop. But it has few issues:
  • The path strings are not type-safe, making it easy to cause typos and bugs after
    refactor
  • The API made navigating via screen name more incovenient, even if that's the preferred approach

This revamps the API of the Link component to make it easier to use. Instead of to prop, it now accepts screen and params props, as well as an optional href prop to
use instead of the generated path.

e.g.:

<Link screen="Details" params={{ foo: 42 }}>Go to Details</Link>

This also drops the useLinkTo hook and consolidates into the useLinkTools hook - which lets us build a href for a screen or action for a path.

  • React Native team is focusing on migrating away from Flipper. So it doesn't make much sense for us to spend additional resources to support the Flipper plugin.

Don't miss a new react-navigation release

NewReleases is sending notifications on new releases.