A step-by-step guide to building a React Native super app using Re.Pack 5 and Module Federation. Covers migrating two existing React Native apps to Re.Pack with Rspack, configuring a MiniApp to expose a federated module, registering it as a remote in a HostApp, and loading it at runtime with React.lazy and Suspense. Also addresses production considerations including bundle delivery strategy, the native-code boundary (native modules must be pre-bundled in the host), and App Store/Google Play policy compliance for dynamic JavaScript delivery.
Table of contents
What will you build?Prepare the two applicationsConnect the mini app to the hostLoad the mini app inside the hostRun and verify the complete setupPrepare for productionSummary539 Impressions