Code Splitting in React Native
summary
Discusses techniques for splitting and loading React Native app code to reduce bundle size and improve startup performance, focusing on tools and approaches used in the React/React Native ecosystem (for example techniques around bundling and Webpack-like split strategies). Covers practical considerations for implementing code splitting in mobile apps built with React Native and how it affects app delivery and runtime behavior.
AI-written summary · about
chapters (10)
- 0:00Start
- 0:10Code Splitting in React Native @geekykaran
- 4:29Bundling in React Native
- 5:51Size increases linearly with complexity
- 6:33Single file with an index of all modules
- 9:17Faster startup but slower subsequent screen loads
- 11:23Tweak metro to generate multiple bundles using dynamic imports (link)
- 12:012. Add custom implementation for dynamic imports (link)
- 12:38Use our custom dynamic import implementation to tell the native side to load the new bundle (link)
- 12:50Write native code to inject new bundle into the Javascript VM (link)
related talks
26mOptimizing React Native Performance
22mCoding Session: React Native Practice
47mReact Native code reuse: Architecture that works
35mBridging the Gap: How to use React Native in existing large native code bases
44mBest Practices to Build Scalable React Native Apps
37mMicro Frontends for Mobile
30mMaking React Native Fast & Lean
21mJavaScript, React Native and Performance
