0
0
React Nativemobile~20 mins

React Navigation installation in React Native - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
React Navigation Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding React Navigation dependencies
Which package is required to enable gesture-based navigation in React Navigation for React Native apps?
A@react-navigation/native
Breact-native-gesture-handler
Creact-native-reanimated
Dreact-native-screens
Attempts:
2 left
💡 Hint
Think about what handles touch and swipe gestures in React Native navigation.
ui_behavior
intermediate
2:00remaining
Effect of missing react-native-screens installation
What happens if you do NOT install and configure react-native-screens when using React Navigation?
AApp crashes immediately on navigation
BNavigation works normally without any difference
CNavigation transitions become slower and less memory efficient
DApp fails to build due to missing dependency
Attempts:
2 left
💡 Hint
This package optimizes screen rendering and memory usage.
📝 Syntax
advanced
2:00remaining
Correct installation command for React Navigation core
Which command correctly installs the core React Navigation library using npm?
Anpm install @react-navigation/native
Bnpm install @react-navigation/core
Cnpm install react-native-navigation
Dnpm install react-navigation
Attempts:
2 left
💡 Hint
The official React Navigation package uses a scoped name starting with @react-navigation.
lifecycle
advanced
2: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?
ARun react-native link to link native modules
BNo additional steps needed, just import and use
CRestart the Metro bundler only
DRebuild the app and restart the bundler
Attempts:
2 left
💡 Hint
Native modules require rebuilding the app to integrate properly.
🔧 Debug
expert
2: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?
AYou forgot to wrap your app in NavigationContainer
BYou did not install react-native-gesture-handler
CYou used the wrong version of React Native
DYou did not import React in your component
Attempts:
2 left
💡 Hint
React Navigation requires a special container component at the root.