Challenge - 5 Problems
React Navigation Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding React Navigation dependencies
Which package is required to enable gesture-based navigation in React Navigation for React Native apps?
Attempts:
2 left
💡 Hint
Think about what handles touch and swipe gestures in React Native navigation.
✗ Incorrect
The package react-native-gesture-handler is essential for handling gestures like swipes and taps in React Navigation.
❓ ui_behavior
intermediate2:00remaining
Effect of missing react-native-screens installation
What happens if you do NOT install and configure react-native-screens when using React Navigation?
Attempts:
2 left
💡 Hint
This package optimizes screen rendering and memory usage.
✗ Incorrect
react-native-screens improves performance by using native primitives for screen management. Without it, transitions are slower and use more memory.
📝 Syntax
advanced2:00remaining
Correct installation command for React Navigation core
Which command correctly installs the core React Navigation library using npm?
Attempts:
2 left
💡 Hint
The official React Navigation package uses a scoped name starting with @react-navigation.
✗ Incorrect
The core React Navigation library is installed with npm install @react-navigation/native.
❓ lifecycle
advanced2:00remaining
Linking native dependencies after installation
After installing react-native-gesture-handler and react-native-reanimated, what is the next required step to ensure they work properly in a React Native app?
Attempts:
2 left
💡 Hint
Native modules require rebuilding the app to integrate properly.
✗ Incorrect
After installing native dependencies, you must rebuild the app (e.g., rerun react-native run-android or run-ios) and restart the bundler to apply changes.
🔧 Debug
expert2:00remaining
Troubleshooting navigation not working after installation
You installed @react-navigation/native and its dependencies, but navigation does not work and shows a blank screen. Which is the MOST likely cause?
Attempts:
2 left
💡 Hint
React Navigation requires a special container component at the root.
✗ Incorrect
NavigationContainer is required to manage navigation state and linking. Without it, navigation components render nothing.