Routing and navigation for your React Native apps
Published by satya164 over 1 year ago
Published by satya164 over 1 year ago
Published by satya164 over 1 year ago
Published by satya164 over 1 year ago
Published by satya164 over 1 year ago
Note: Version bump only for package flipper-plugin-react-navigation
Published by satya164 over 1 year ago
Published by satya164 over 1 year ago
Note: Version bump only for package @react-navigation/example
Published by satya164 over 1 year ago
Note: Version bump only for package @react-navigation/core
Published by satya164 over 1 year ago
Note: Version bump only for package @react-navigation/stack
Published by satya164 over 1 year ago
Note: Version bump only for package @react-navigation/bottom-tabs
Published by satya164 over 1 year ago
Published by satya164 over 1 year ago
Note: Version bump only for package @react-navigation/drawer
Published by satya164 over 1 year ago
Note: Version bump only for package @react-navigation/material-bottom-tabs
Published by satya164 over 1 year ago
Note: Version bump only for package @react-navigation/material-top-tabs
Published by satya164 over 1 year ago
Note: Version bump only for package @react-navigation/elements
Published by satya164 over 1 year ago
Note: Version bump only for package @react-navigation/native
Published by satya164 over 1 year ago
Published by satya164 over 1 year ago
Note: Version bump only for package flipper-plugin-react-navigation
Published by satya164 over 1 year ago
Note: Version bump only for package @react-navigation/devtools
Published by satya164 over 1 year ago
add ScrollView
type to 'getScrollResponder' (#11112) (f4324cd) - by @ken0nek
don't modify browser history on re-render (ab66777) - by @satya164
keep hash/fragment section un URLs on web (#11078) (a30daa0) - by @nikgraf
refactor!: improve the API for Link component (7f35837) - by @satya164
fix!: align onReady callback and navigationRef.isReady (1959baa) - by @satya164
Link
component was designed to work with path strings via the to
prop. But it has few issues: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.
onReady
prop and navigationRef.isReady()
work slightlyonReady
callback fired when NavigationContainer
finishes mounting and deep links is resolved.navigationRef.isReady()
method additionally checks if there are any navigators rendered - which may not be true
if the user is rendering their navigators conditionally inside aNavigationContainer
.This changes onReady
to work similar to navigationRef.isReady()
. The onReady
callback will now fire only when there are navigators rendered - reflecting the value of
navigationRef.isReady()
.