Passing datas though Screens
📡 What you will learn
👾 Before we start the exercise
👨🚀 Exercise 2
Navigating to another screens with
- The header title for this view should be
Navigator.tsxto add a new screen called
handlePressfunction to send the user to
STARSHIP_DETAIL_SCREEN, passing the
starshipdata as parameters.
Create a details screen
- Go and create
Each screen component in your app is provided with the
route prop automatically.
- Read the
paramsof the screen and display the
You can use these component to make it pretty:
- Change the
screenOptionsto display your screen as a
- Add a "close modal" Button with an icon.