0
0
React Nativemobile~5 mins

Expo modules in React Native - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is an Expo module in React Native?
An Expo module is a reusable package that adds native functionality to a React Native app using Expo. It helps you access device features like camera, sensors, or notifications easily.
Click to reveal answer
beginner
How do Expo modules simplify mobile app development?
Expo modules provide pre-built native code wrapped in JavaScript, so you don’t have to write native code yourself. This saves time and reduces complexity when adding device features.
Click to reveal answer
beginner
Name two common Expo modules and their purpose.
1. expo-camera: lets you take photos and record videos. 2. expo-location: provides access to the device’s GPS location.
Click to reveal answer
beginner
How do you install an Expo module in your React Native project?
Use the command `expo install ` in your project folder. This ensures you get the right version compatible with your Expo SDK.
Click to reveal answer
intermediate
What is the difference between managed and bare workflows in Expo regarding modules?
In managed workflow, Expo handles native code and modules for you, making it easier but less flexible. In bare workflow, you control native code and can add custom native modules.
Click to reveal answer
Which command installs an Expo module correctly?
Anpm install expo-module-camera
Bexpo install expo-camera
Cexpo add camera-module
Dnpm install react-native-camera
What does the expo-location module provide?
AAccess to device GPS location
BCamera access
CPush notifications
DFile system access
In which Expo workflow do you manage native code yourself?
ABare workflow
BManaged workflow
CExpo Go workflow
DNone of the above
Why use Expo modules instead of writing native code directly?
AThey are slower but easier
BThey only work on Android
CThey require manual linking
DThey provide pre-built native features accessible via JavaScript
Which of these is NOT an Expo module?
Aexpo-camera
Bexpo-location
Creact-native-sensors
Dexpo-notifications
Explain what Expo modules are and how they help in React Native app development.
Think about how Expo modules act like ready-made tools for device features.
You got /3 concepts.
    Describe the difference between managed and bare workflows in Expo regarding module usage.
    Consider who controls the native code in each workflow.
    You got /3 concepts.