Overview - Native modules concept
What is it?
Native modules are pieces of code written in platform-specific languages like Java, Kotlin, Objective-C, or Swift that React Native apps can use. They let your JavaScript code talk directly to the device's native features that React Native doesn't support out of the box. This helps you add custom functionality or use device capabilities in your app.
Why it matters
Without native modules, React Native apps would be limited to only what JavaScript and React Native libraries provide. Many device features or performance-heavy tasks require native code. Native modules solve this by bridging JavaScript and native code, making apps more powerful and closer to native performance.
Where it fits
Before learning native modules, you should understand React Native basics and how JavaScript runs in React Native. After this, you can explore native UI components and advanced bridging techniques to customize app behavior deeply.