The Stack Navigator
Interact with the code editor in this lesson to learn about the Stack Navigator.
We'll cover the following...
Let’s implement the Stack Navigator.
Important terms to know
-
createNativeStackNavigator
: We’ll use this function to create two properties—Screen
andNavigator
. These help us create theStackNavigator
. -
NavigationContainer
: This is a wrapper component that wraps around the navigators used to manage our different navigators. It is usually used in the root component of our application (App.js
).
{ "12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true, "40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true }
Stack Navigator example
Note: Once the server starts, click the URL next to “Your app can be found ...