Skip to content

Commit 79fe533

Browse files
committed
Merge branch '@stanleyoos/docs-add-links-in-configuring-ts-page' of github.com:react-navigation/react-navigation.github.io into @stanleyoos/docs-add-links-in-configuring-ts-page
2 parents f3b86bd + 6223e11 commit 79fe533

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

versioned_docs/version-7.x/typescript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ There are 2 steps to configure TypeScript with the static API:
6060
// highlight-end
6161
```
6262

63-
This is needed to type-check the [`useNavigation`](use-navigation.md) hook.
63+
This is needed to type-check the [`useNavigation`](use-navigation.md) hook.
6464

6565
## Navigator specific types
6666

@@ -217,7 +217,7 @@ If you have an `id` prop for your navigator, you can do:
217217
type Props = NativeStackScreenProps<RootStackParamList, 'Profile', 'MyStack'>;
218218
```
219219

220-
This allows us to type check route names and params which you're navigating using `navigate`, `push` etc. The name of the current route is necessary to type check the params in `route.params` and when you call [`setParams`](navigation-actions#setparams).
220+
This allows us to type check route names and params which you're navigating using `navigate`, `push` etc. The name of the current route is necessary to type check the params in `route.params` and when you call [`setParams`](navigation-actions#setparams).
221221

222222
Similarly, you can import `StackScreenProps` for `@react-navigation/stack`, `DrawerScreenProps` from `@react-navigation/drawer`, `BottomTabScreenProps` from `@react-navigation/bottom-tabs` and so on.
223223

0 commit comments

Comments
 (0)