0
0
React Nativemobile~5 mins

Modal and bottom sheet in React Native - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a Modal in React Native?
A Modal is a component that appears on top of the current screen to show important information or get user input. It blocks interaction with the rest of the app until dismissed.
Click to reveal answer
beginner
How does a Bottom Sheet differ from a Modal?
A Bottom Sheet slides up from the bottom of the screen and usually covers part of the screen. It is less intrusive than a Modal and often used for actions or options.
Click to reveal answer
beginner
Which React Native component is used to create a Modal?
The built-in Modal component is used to create modals in React Native.
Click to reveal answer
beginner
What prop controls the visibility of a Modal in React Native?
The visible prop controls whether the Modal is shown (true) or hidden (false).
Click to reveal answer
intermediate
Name one popular library to implement Bottom Sheets in React Native.
One popular library is reanimated-bottom-sheet or @gorhom/bottom-sheet which provide customizable bottom sheets.
Click to reveal answer
What happens when a Modal is visible in React Native?
AIt allows interaction with the background screen.
BIt blocks interaction with the rest of the app until dismissed.
CIt automatically closes after 5 seconds.
DIt moves the screen content to the top.
Which prop do you use to show or hide a Modal?
Ashow
Bdisplay
Cactive
Dvisible
A Bottom Sheet usually appears from where on the screen?
ATop
BLeft
CBottom
DCenter
Which React Native component is built-in for Modals?
AModal
BPopup
CDialog
DSheet
Which library can help create Bottom Sheets in React Native?
Areanimated-bottom-sheet
Baxios
Credux
Dreact-navigation
Explain how a Modal works in React Native and when you might use it.
Think about a popup that stops you from using the app until you respond.
You got /3 concepts.
    Describe the difference between a Modal and a Bottom Sheet in mobile apps.
    Imagine a popup vs a sliding panel from the bottom.
    You got /3 concepts.