0
0
React Nativemobile~5 mins

Why native modules extend capabilities in React Native - Quick Recap

Choose your learning style9 modes available
Recall & Review
beginner
What is a native module in React Native?
A native module is a piece of code written in the platform's native language (like Java/Kotlin for Android or Objective-C/Swift for iOS) that can be called from React Native JavaScript code to access features not available in React Native by default.
Click to reveal answer
beginner
Why do React Native apps sometimes need native modules?
Because React Native does not cover all device features or platform-specific APIs, native modules let developers add those missing capabilities by bridging native code with JavaScript.
Click to reveal answer
intermediate
How do native modules improve app performance?
Native modules run directly on the device's native platform, so they can perform heavy or complex tasks faster than JavaScript code running in React Native.
Click to reveal answer
beginner
Give an example of a feature that might require a native module.
Accessing the device's camera, fingerprint sensor, or Bluetooth functionality often requires native modules because these features need platform-specific code.
Click to reveal answer
intermediate
What is the role of the bridge in React Native native modules?
The bridge connects JavaScript code with native code, allowing communication between them so native modules can be called from React Native and return results back.
Click to reveal answer
Why do React Native apps use native modules?
ATo access device features not available in React Native by default
BTo write all app code in JavaScript only
CTo avoid using any native platform code
DTo make the app slower
Which languages are native modules typically written in for Android and iOS?
AJava/Kotlin for Android and Objective-C/Swift for iOS
BJavaScript and TypeScript
CPython and Ruby
DHTML and CSS
What does the React Native bridge do?
ARuns the app only on web browsers
BConnects JavaScript code with native platform code
CCompiles JavaScript into native code automatically
DPrevents communication between native and JavaScript code
Which of these is NOT a reason to use native modules?
AAccessing hardware features like camera or sensors
BImproving performance for complex tasks
CWriting UI components in JavaScript
DUsing platform-specific APIs
What happens if you try to use a device feature not supported by React Native without a native module?
AThe app will crash immediately
BThe app will run faster
CReact Native will automatically add support
DThe feature will not work or be accessible
Explain in your own words why native modules are important in React Native development.
Think about what React Native cannot do alone and how native code helps.
You got /3 concepts.
    Describe how the React Native bridge works with native modules to enable app features.
    Imagine the bridge as a messenger between two languages.
    You got /3 concepts.