Skip to content

Commit 6342a31

Browse files
committed
Mention TypeScript as a pro for React Navigation 8
1 parent 06f7401 commit 6342a31

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

versioned_docs/version-7.x/from-expo-router.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar_label: Moving from Expo Router
66

77
[Expo Router](https://docs.expo.dev/router/introduction/) is a file-based router for React Native and Web apps. Moving to React Navigation means replacing file-based configuration with code-based configuration.
88

9-
This guide intends to cover the main differences and the broad concepts between the two to get you started.
9+
This guide intends to cover the main differences and the broad concepts between the two to get you started. It'll focus on the static configuration API, which is the recommended way to use React Navigation in new apps.
1010

1111
## Why React Navigation
1212

versioned_docs/version-8.x/from-expo-router.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar_label: Moving from Expo Router
66

77
[Expo Router](https://docs.expo.dev/router/introduction/) is a file-based router for React Native and Web apps. Moving to React Navigation means replacing file-based configuration with code-based configuration.
88

9-
This guide intends to cover the main differences and the broad concepts between the two to get you started.
9+
This guide intends to cover the main differences and the broad concepts between the two to get you started. It'll focus on the static configuration API, which is the recommended way to use React Navigation in new apps.
1010

1111
## Why React Navigation
1212

@@ -18,6 +18,7 @@ Some of the benefits of React Navigation are:
1818
- Modeled on state objects instead of URLs, which encode more information and enable features such as [`reset`](navigation-actions.md#reset) and [navigation state persistence](state-persistence.md).
1919
- More flexible deep linking, such as parsing and schema support for params, regex support for paths, and even fully custom parsing with [`getStateFromPath`](navigation-container.md#linkinggetstatefrompath) etc.
2020
- URL segments are not coupled to navigator nesting structure, making it possible to change the UI without affecting public URLs.
21+
- Strong TypeScript support with type-safety as a primary goal of the API design.
2122

2223
Some of the benefits of Expo Router are:
2324

0 commit comments

Comments
 (0)