Modulet natyve i lejojnë React Native (JavaScript) të hyjë në kodin natyv të platformës dhe tiparet (iOS/Android) që nuk janë të disponueshme përmes JavaScript — duke lidhur me API-t natyve, SDK-t, ose funksionalitetin natyv të personalizuar. Ato e zgjerojnë React Native përtej asaj që ofron JS vetëm.
Pse ekzistojnë modulet natyve
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.
