Skip to content

What is the purpose of types.tsx in navigation directory ? #241

Answered by SihamBen
DavidGuillerm asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @DavidGuillerm,
The purpose of types.tsx is to provide a global type for the RootNavigator, this way if you use useNavigation, your app will ensure type safety. The type will be used as the default type.
Please refer to this part of the docs for more details

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by yjose
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants