Recall & Review
beginner
What is React Navigation used for in React Native apps?
React Navigation helps you move between different screens or pages in a React Native app, like flipping through pages in a book.
Click to reveal answer
beginner
Which command installs the core React Navigation library?
You run
npm install @react-navigation/native or yarn add @react-navigation/native to add React Navigation to your project.Click to reveal answer
intermediate
Why do you need to install additional dependencies like
react-native-screens and react-native-safe-area-context?These help React Navigation work smoothly with native device features like screen optimizations and safe areas (like notches on phones).
Click to reveal answer
intermediate
What is the purpose of installing
react-native-gesture-handler when setting up React Navigation?It enables smooth touch gestures like swiping between screens, making navigation feel natural and responsive.
Click to reveal answer
beginner
After installing React Navigation and its dependencies, what is the next step to start using it in your app?
You wrap your app in a
NavigationContainer component and define navigators like stack or tab navigators to manage screen transitions.Click to reveal answer
Which command installs the core React Navigation library?
✗ Incorrect
The correct package for React Navigation core is @react-navigation/native.
Which dependency is required for handling gestures in React Navigation?
✗ Incorrect
react-native-gesture-handler enables touch gestures like swiping.
What component should wrap your app to enable React Navigation?
✗ Incorrect
NavigationContainer is the main wrapper for React Navigation.
Why do you install react-native-screens with React Navigation?
✗ Incorrect
react-native-screens improves performance by optimizing screen management.
Which of these is NOT a step in installing React Navigation?
✗ Incorrect
react-native-navigation is a different library, not part of React Navigation setup.
Explain the main steps to install React Navigation in a React Native project.
Think about the commands you run and how you prepare your app to use navigation.
You got /4 concepts.
Why is it important to install react-native-gesture-handler and react-native-screens when using React Navigation?
Consider how navigation feels and performs on a real phone.
You got /3 concepts.