Add navigation
Let’s add navigation to LandingScreen, so that we can load the VideoDetailsScreen when we click on a VideoCard.- In
LandingScreen.tsxdestructurenavigationin the parameters for LandingScreen, declaring it to be of typeany.
- Update the VideoCard to take in the new prop
pressFunctionand set it to navigate to the VideoDetailScreen - Add
{ video: item }as a parameter to thenavigatecall.
LandingScreen.tsx code should look like this:

VideoDetail Screen

