React Native & Expo (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
App Startup Time Optimization (Time to Interactive - TTI).
senior LevelPerformance
In Simple Words: Slashing cold launch time from 4 seconds down to sub-1 second:
- Enable Hermes Engine: Eliminates runtime JS parsing overhead.
- Inline Requires: Defer importing heavy modules until they are actually rendered (
require('moment')inside the function). - Optimize Splash Screen: Keep native splash screen visible until initial critical layout renders to avoid layout jank.
- Reduce Native Module Overhead: Convert legacy synchronous native modules to lazy TurboModules.