Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix file extension typo
Changed type.tsx to type.ts
  • Loading branch information
n-ii-ma authored Mar 4, 2024
commit 8a1a7200fc93f34d81dc281338c9424d832d2cfe
2 changes: 1 addition & 1 deletion versioned_docs/version-6.x/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ import type { RouteProp } from '@react-navigation/native';
type ProfileScreenRouteProp = RouteProp<RootStackParamList, 'Profile'>;
```

We recommend creating a separate `types.tsx` file where you keep the types and import them in your component files instead of repeating them in each file.
We recommend creating a separate `types.ts` file where you keep the types and import them in your component files instead of repeating them in each file.

### Nesting navigators

Expand Down