Modul natif membolehkan React Native (JavaScript) mengakses kod dan ciri platform natif (iOS/Android) yang tidak tersedia melalui JavaScript — menyambung ke API natif, SDK, atau fungsi natif tersuai. Ia memanjangkan React Native melangkaui apa yang disediakan oleh JS sahaja.
Mengapa modul natif wujud
React Native's JavaScript can't directly access every native capability. NATIVE MODULES
bridge JS to native code (Swift/Objective-C on iOS, Kotlin/Java on Android):
→ access native APIs/SDKs not exposed to JS
→ use existing native libraries
→ implement performance-critical or platform-specific functionality in native code
→ The bridge between React Native's JS and the native platform.
