React Native & Expo (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)
What are TurboModules?
senior LevelSystem Design
In Simple Words: TurboModules is the native module system in the New Architecture:
- Old Native Modules: All native modules (Camera, Bluetooth, Location, SQLite) were instantiated and initialized in memory on app launch, significantly slowing down app startup!
- TurboModules: Loaded lazily on demand. A native module is only loaded into memory when JavaScript explicitly calls
TurboModuleRegistry.get('MyModule').