Challenge - 5 Problems
Screen Flow Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Why is navigation important in a React Native app?
Which option best explains why navigation is used to manage screen flow in a React Native app?
Attempts:
2 left
💡 Hint
Think about how users switch between pages or views in an app.
✗ Incorrect
Navigation controls how users move from one screen to another, making the app easy to use and understand.
❓ ui_behavior
intermediate2:00remaining
What happens when you navigate to a new screen?
In React Native, what is the visible result when you use navigation to go to a new screen?
Attempts:
2 left
💡 Hint
Think about what you see when you tap a button to open a new page.
✗ Incorrect
Navigation replaces or stacks screens so users see the new content while the old screen is kept in memory or hidden.
❓ lifecycle
advanced2:00remaining
How does navigation affect screen lifecycle in React Native?
When navigating between screens, which lifecycle event typically happens to the screen you leave?
Attempts:
2 left
💡 Hint
Think about what happens to a screen when you leave it in a multi-screen app.
✗ Incorrect
When you leave a screen, React Native may unmount it or pause its updates to save memory and improve performance.
advanced
2:00remaining
What is the role of a navigation stack in screen flow?
In React Native navigation, what does the navigation stack do?
Attempts:
2 left
💡 Hint
Think about how you can press a back button to return to the last screen.
✗ Incorrect
The navigation stack remembers the order of screens so users can navigate back and forth smoothly.
🔧 Debug
expert3:00remaining
Why does improper navigation cause app crashes?
What is a common reason navigation can cause a React Native app to crash or freeze?
React Native
function App() {
const navigation = useNavigation();
function goToScreen() {
navigation.navigate('Home');
navigation.navigate('Home');
}
return <Button title="Go" onPress={goToScreen} />;
}Attempts:
2 left
💡 Hint
Think about what happens if you try to open the same screen twice in a row very fast.
✗ Incorrect
Rapid repeated navigation calls can confuse the navigation system, causing crashes or freezes.