You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versioned_docs/version-7.x/typescript.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,10 @@ import TabItem from '@theme/TabItem';
9
9
10
10
React Navigation can be configured to type-check screens and their params, as well as various other APIs using TypeScript. This provides better intelliSense and type safety when working with React Navigation.
11
11
12
-
For React Navigation to work correctly with TypeScript, make sure you have the following configuration in your `tsconfig.json` under `compilerOptions`:
12
+
First, make sure you have the following configuration in your `tsconfig.json` under `compilerOptions`:
13
13
14
-
-`strict: true` or `strictNullChecks: true` - IntelliSense and type inference may not work correctly without strict mode.
15
-
-`moduleResolution: "bundler"` - This is necessary to resolve the types correctly and match [Metro](https://metrobundler.dev/) and other bundler's behavior.
14
+
-`strict: true` or `strictNullChecks: true` - Necessary for intelliSense and type inference to work correctly.
15
+
-`moduleResolution: "bundler"` - Necessary to resolve the types correctly and match the behavior of [Metro](https://metrobundler.dev/) and other bundlers.
0 commit comments