0
0
React Nativemobile~5 mins

Stack Navigator in React Native - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a Stack Navigator in React Native?
A Stack Navigator manages a stack of screens where you can push new screens on top or pop back to previous ones, like a stack of cards.
Click to reveal answer
beginner
How do you navigate to a new screen using Stack Navigator?
You use the navigation prop's navigate('ScreenName') method to push a new screen onto the stack.
Click to reveal answer
beginner
What happens when you call navigation.goBack() in a Stack Navigator?
It removes the current screen from the stack and shows the previous screen, like going back in history.
Click to reveal answer
intermediate
How do you set the initial screen in a Stack Navigator?
You set the initialRouteName property in the Stack Navigator configuration to the screen you want to show first.
Click to reveal answer
beginner
Why is Stack Navigator useful in mobile apps?
It mimics natural screen transitions and back behavior, making navigation simple and intuitive for users.
Click to reveal answer
Which method pushes a new screen onto the stack in React Native Stack Navigator?
Anavigation.goBack()
Bnavigation.reset()
Cnavigation.popToTop()
Dnavigation.navigate('ScreenName')
What does navigation.goBack() do in Stack Navigator?
AReturns to the previous screen
BCloses the app
CPushes a new screen
DReloads the current screen
How do you specify which screen shows first in a Stack Navigator?
AinitialScreen
BinitialRouteName
CstartRoute
DfirstScreen
Which of these is NOT a feature of Stack Navigator?
ABack button support
BScreen stacking
CTab bar navigation
DScreen transition animations
What kind of user experience does Stack Navigator provide?
AHierarchical screen navigation with back support
BNo navigation at all
CRandom screen jumps
DFlat list of screens
Explain how Stack Navigator manages screens in a React Native app.
Think about how a stack of cards works.
You got /4 concepts.
    Describe how to set up and use Stack Navigator to navigate between two screens.
    Start from creating the navigator and then moving between screens.
    You got /4 concepts.