Skip to content

Commit e9136d7

Browse files
committed
Add a note about using previous StackRouter
1 parent 42ee22b commit e9136d7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

versioned_docs/version-8.x/upgrading-from-7.x.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ Similarly, if you were using `state.preloadedRoutes` to get the preloaded routes
335335

336336
These changes also enable the new [retain](#stack-and-native-stack-navigators-now-support-retaining-screens) feature for Stack and Native Stack Navigators.
337337

338+
If you use a custom navigator with `StackRouter` and do not want to change the state shape, you can copy the [previous implementation of `StackRouter` from React Navigation 7](https://github.com/react-navigation/react-navigation/blob/7.x/packages/routers/src/StackRouter.tsx) and use it instead. However, preloading and retaining routes will not be supported.
339+
338340
See [Navigation state](navigation-state.md) for more details.
339341

340342
##### Preloaded screens behave closer to regular screens

0 commit comments

Comments
 (0)