Problem Statement
How do you access parameters passed to a screen?
Explanation
Each screen in React Navigation receives two props — navigation and route.
The route object contains information about the current route, including any params passed from previous screens.
Code Solution
SolutionRead Only
const { id } = route.params;