Native Module ermöglichen es React Native (JavaScript), auf nativen Plattformcode und Funktionen (iOS/Android) zuzugreifen, die über JavaScript nicht verfügbar sind — als Brücke zu nativen APIs, SDKs oder benutzerdefinierter nativer Funktionalität. Sie erweitern React Native über die Möglichkeiten von JS allein hinaus.
Warum native Module existieren
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.
