Native moduler lader React Native (JavaScript) få adgang til native platform-kode og features (iOS/Android), som ikke er tilgængelige gennem JavaScript — de bygger bro til native API'er, SDK'er eller custom native-funktionalitet. De udvider React Native beyond hvad JavaScript alene kan præstere.
Hvorfor native moduler eksisterer
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.
