as

Settings
Sign out
Notifications
Alexa
Amazonアプリストア
AWS
ドキュメント
Support
Contact Us
My Cases
開発
設計と開発
公開
リファレンス
サポート
メインコンテンツへスキップ

Add Navigation

Let’s add navigation to LandingScreen, so that we can load the VideoDetailsScreen when we click on a VideoCard.
  • In LandingScreen.tsx destructure navigation in the parameters for LandingScreen, declaring it to be of type any.
  • Update the VideoCard to take in the new prop pressFunction and set it to navigate to the VideoDetailScreen
  • Add { video: item } as a parameter to the navigate call.
The LandingScreen.tsx code should look like this:
Now if you click on a video it should take you to the VideoDetail Screen we created, however as you can see the Video Details are currently hardcoded so next we will update this screen to render the actual video data.
VideoDetail Screen

VideoDetail Screen


最終更新日 2026年2月9日