Building Cross-Platform Federated Modules With React, React Native and Re.Pack

This ad is not shown to multipass and full ticket holders
React Advanced
React Advanced 2025
November 27 - 1, 2025
London, UK & Online
We will be diving deep
Learn More
In partnership with Focus Reactive
Upcoming event
React Advanced 2025
React Advanced 2025
November 27 - 1, 2025. London, UK & Online
Learn more
Bookmark
Rate this content

Module Federation lets you organize code into federated modules, dynamically loaded at runtime within a host application—a core mechanism behind Super Apps. On the web, this is typically handled with Webpack.

Now, with Re.Pack as a Metro alternative, React Native supports it too. This allows existing native Super Apps to transition to React Native and enables truly cross-platform modules, letting developers use React and JavaScript without concern for where modules run.

In this talk, we’ll explore these possibilities, best practices and real-world examples to help you build efficient, cross-platform Super Apps.

This talk has been presented at React Summit 2025, check out the latest edition of this React Conference.

FAQ

The main topic is building cross-platform super apps using React, React Native, and Reapack, with a focus on micro-frontends and module federation.

Reapack is an alternative bundler for React Native that acts as a compatibility layer on top of Webpack or RSPack, created to provide more diversity and options in bundling for React Native.

Module federation allows for the creation of truly cross-platform applications by enabling dynamic code loading and integration of third-party features, making applications more modular and faster to ship.

Challenges include potential performance issues, managing third-party code security, and the need for a development portal for integrating external modules.

The SDK approach involves creating a context for third-party developers to implement features following the host's UI and security standards, making integration easier and more decoupled.

Companies can separate federated modules into different React Native environments to prevent malicious code from affecting the host application, using APIs like postMessage for communication.

Reapack V5 significantly closed the performance gap with Metro, the default React Native bundler, by migrating to RSPack, resulting in improved build times and performance.

Developers can experiment with module federation in React Native by using Reapack, exploring the provided GitHub setup, and utilizing the SDK approach for integrating third-party modules.

Module federation allows independent applications to work together by allowing a host application to include multiple smaller remote applications. This enables dynamic updates and loading of applications without affecting the host app.

The speaker is the CDO and founder at ColdStack, who has been working with React Native for 10 years. They can be found under Grubhub on various platforms.

Mike Grabowski
Mike Grabowski
28 min
13 Jun, 2025

Comments

Sign in or register to post your comment.
Video Summary and Transcription
Introduction to building cross-platform super apps with React, React Native, and Repack. Discussion on leveraging module federation for cross-platform applications and the benefits of Repack, React Native, and module federation. Explanation of module federation's potential in React Native with Repack. Importance of Repack as an alternative bundler for React Native and the significance of sharing infrastructure. Overview of Repack V5's compatibility with React Native, migration benefits, and cross-platform micro-frontends. Integration of federated modules in React Native for seamless standalone module integration. Configuring flexible federated module dependencies with RSPack, Zephyr Cloud for versioning, and lazy loading. Integrating SDK for decoupled module development and enhancing federated module UI flexibility. Challenges and benefits of integrating external modules in React Native. Improving application development speed with Module Federation and Repack for faster deployment.

1. Building Cross-Platform Super Apps

Short description:

Introduction to building cross-platform super apps with React, React Native, and Reapack. Discussion on micro-frontends and leveraging module federation for cross-platform applications. Overview of Repack, React Native, and module federation benefits.

Thank you so much and hello everybody! This is the first time I'm speaking in this silent disco setup so it kind of feels interesting. And I got a bunch of announcements to make but we'll see if we have enough time during the Q&A. Alright, so today, as you can see, the topic is building cross-platform super apps with React, React Native, and Reapack. So before we start, a couple of words about me. That's a more accurate photo of myself because the purple one you've seen was like six months ago. I'm CDO and founder at ColdStack. I've been doing React Native for 10 years now. You can find me under Grubhub on pretty much everywhere. And I just put up this screenshot because I realized when I was making it, it's been over 10 years and it's pretty interesting that when it comes to writing React Native code, when I was writing this, I was wondering when this code will become legacy. And I just realized that I can remember the code I wrote is already legacy which is a pretty interesting realization like time flies so fast.

Anyway, today I want to talk to you about micro-frontends. You may have heard a term super apps but I want to talk about micro-frontends which is how you can leverage module federation to build truly cross-platform applications, in fact, turn them into platforms with third-party code included if that's your use case as well. And the topic was originally about super apps, but I just find micro-frontends more useful, more general purpose, a broader term that doesn't necessarily apply to super apps only. So let's have a look at what we have in the agenda today. First, I will do a little bit of an intro to Repack and React Native. So maybe just to get better understanding of the audience, how many of you are React Native developers? Okay, and so those of you who didn't raise your hand, I'm assuming you're React developers. Okay, I see some hands moving, that's fine, all right. So I'll try to make this introduction smooth and then we'll talk about Repack, what it is, high-level overview, and then we'll talk a bit about module federation and then obviously benefits and things that we didn't talk about during those 30 minutes. So let's go, let's start.

So traditionally, when it comes to dynamic content, we typically had limited options on the mobile. WebViews were the quick solution, right? Essentially embedding a browser in your application and this is great when you want to ship a lot of dynamic content without affecting your overall application size, but also this comes with a degraded user experience and obviously performance issues. Companies like Shopify, this is taken from their article, use WebViews in over hundreds of places, very important but not mission critical. Like the screens you can see on the slides, very dynamic, and they also spend a lot of engineering resources to make sure those issues do not affect the UX. Like here, they share on Twitter how they fix performance issues, how they made WebViews up to six times faster, and we could do all that or we could use module federation and this is exactly what are we going to talk about today. So what is module federation? To better understand that, let's go back in time and talk a bit about bundle splitting. I'm sure you've heard about this before. Bundle splitting is kind of a de facto standard these days. The idea is very simple. We split our code into chunks and we load them on demand as needed, and back then, this was quite revolutionary. Suddenly you didn't have to ship a single bundle, you could split your bundle into multiple chunks, and then whenever you would make a change, you would only update, say, the client chunk or maybe the vendor chunk.

2. Advancement of Module Federation in React Native

Short description:

Explanation of module federation's advancement from bundle splitting and its potential in React Native with Repack as an alternative bundler.

And by the way, you guys cannot see this, but it's like half of you is trying to get a bit of fresh air. It's pretty interesting. I'm trying not to get distracted by that, but it's really interesting because it's all kind of flowing, synchronized, and this view behind is a bit intimidating as well. It's pretty interesting. Anyway, all right.

So that helped with caching and versioning because suddenly, like I said, you could split it all up. And then module federation, what it really does is it takes this one step further. Instead of splitting one application into chunks, you can suddenly have multiple independent applications work together. As in this case, host application, as long as it includes a module federation runtime, it can start including multiple smaller remote applications that you can add during the application lifecycle. You can update them, or you can even remove them. And the key difference from code splitting is that federated modules, or those remote applications, are totally separate from the host application.

Today, module federation, as we already know, evolved from bundle splitting and is now sort of starting to become a bundler-agnostic concept. In 2024, it became a whole specification, and there are bundlers outside of Webpack ecosystem that are starting to support it, including RSPack and Roldown as well. So now the question is, can we bring it to React Native? After all, React Native runs JavaScript. It has a module system, so theoretically, everything should be possible, right? The answer is, of course, yes, otherwise I wouldn't be standing here. And the answer to that is a Repack, which is an alternative bundler for React Native.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Building Better Websites with Remix
React Summit Remote Edition 2021React Summit Remote Edition 2021
33 min
Building Better Websites with Remix
Top Content
Remix is a web framework built on React Router that focuses on web fundamentals, accessibility, performance, and flexibility. It delivers real HTML and SEO benefits, and allows for automatic updating of meta tags and styles. It provides features like login functionality, session management, and error handling. Remix is a server-rendered framework that can enhance sites with JavaScript but doesn't require it for basic functionality. It aims to create quality HTML-driven documents and is flexible for use with different web technologies and stacks.
Speeding Up Your React App With Less JavaScript
React Summit 2023React Summit 2023
32 min
Speeding Up Your React App With Less JavaScript
Top Content
Watch video: Speeding Up Your React App With Less JavaScript
Mishko, the creator of Angular and AngularJS, discusses the challenges of website performance and JavaScript hydration. He explains the differences between client-side and server-side rendering and introduces Quik as a solution for efficient component hydration. Mishko demonstrates examples of state management and intercommunication using Quik. He highlights the performance benefits of using Quik with React and emphasizes the importance of reducing JavaScript size for better performance. Finally, he mentions the use of QUIC in both MPA and SPA applications for improved startup performance.
Full Stack Documentation
JSNation 2022JSNation 2022
28 min
Full Stack Documentation
Top Content
The Talk discusses the shift to full-stack frameworks and the challenges of full-stack documentation. It highlights the power of interactive tutorials and the importance of user testing in software development. The Talk also introduces learn.svelte.dev, a platform for learning full-stack tools, and discusses the roadmap for SvelteKit and its documentation.
SolidJS: Why All the Suspense?
JSNation 2023JSNation 2023
28 min
SolidJS: Why All the Suspense?
Top Content
Suspense is a mechanism for orchestrating asynchronous state changes in JavaScript frameworks. It ensures async consistency in UIs and helps avoid trust erosion and inconsistencies. Suspense boundaries are used to hoist data fetching and create consistency zones based on the user interface. They can handle loading states of multiple resources and control state loading in applications. Suspense can be used for transitions, providing a smoother user experience and allowing prioritization of important content.
From GraphQL Zero to GraphQL Hero with RedwoodJS
GraphQL Galaxy 2021GraphQL Galaxy 2021
32 min
From GraphQL Zero to GraphQL Hero with RedwoodJS
Top Content
Tom Pressenwurter introduces Redwood.js, a full stack app framework for building GraphQL APIs easily and maintainably. He demonstrates a Redwood.js application with a React-based front end and a Node.js API. Redwood.js offers a simplified folder structure and schema for organizing the application. It provides easy data manipulation and CRUD operations through GraphQL functions. Redwood.js allows for easy implementation of new queries and directives, including authentication and limiting access to data. It is a stable and production-ready framework that integrates well with other front-end technologies.
Tanstack Start - A Client-Side First Full-Stack React Framework
React Summit US 2024React Summit US 2024
30 min
Tanstack Start - A Client-Side First Full-Stack React Framework
Top Content
We surveyed thousands of developers to show that a louder audience leads to a better presentation. There has been a shift in web app development towards server-first architectures, which has improved full-stack capabilities but at the cost of complexity and divergence from the client-centric approach. Tanstec Start is a meta-framework that aims to provide the best client-side authoring experience with powerful server-side primitives. The Tansec Router supports advanced routing features, URL state management, and JSON storage. Combined with the server-side rendering capabilities of TanStack Start, it becomes even more powerful. The TanStack Router has isomorphic loaders and integrates seamlessly with TanStack Query for additional features like polling and offline support. UseSuspenseQuery allows for dynamic streaming of data during SSR. TanStack Start also offers server-side features, API routes, server functions, and middleware. The future plans include RSCs, websockets, real-time primitives, and static pre-rendering. TanStack Start is now in beta and is suitable for building React apps. It is open source.

Workshops on related topic

Introducing FlashList: Let's build a performant React Native list all together
React Advanced 2022React Advanced 2022
81 min
Introducing FlashList: Let's build a performant React Native list all together
Top Content
Featured Workshop
David Cortés Fulla
Marek Fořt
Talha Naqvi
3 authors
In this workshop you’ll learn why we created FlashList at Shopify and how you can use it in your code today. We will show you how to take a list that is not performant in FlatList and make it performant using FlashList with minimum effort. We will use tools like Flipper, our own benchmarking code, and teach you how the FlashList API can cover more complex use cases and still keep a top-notch performance.You will know:- Quick presentation about what FlashList, why we built, etc.- Migrating from FlatList to FlashList- Teaching how to write a performant list- Utilizing the tools provided by FlashList library (mainly the useBenchmark hook)- Using the Flipper plugins (flame graph, our lists profiler, UI & JS FPS profiler, etc.)- Optimizing performance of FlashList by using more advanced props like `getType`- 5-6 sample tasks where we’ll uncover and fix issues together- Q&A with Shopify team
Detox 101: How to write stable end-to-end tests for your React Native application
React Summit 2022React Summit 2022
117 min
Detox 101: How to write stable end-to-end tests for your React Native application
Top Content
Workshop
Yevheniia Hlovatska
Yevheniia Hlovatska
Compared to unit testing, end-to-end testing aims to interact with your application just like a real user. And as we all know it can be pretty challenging. Especially when we talk about Mobile applications.
Tests rely on many conditions and are considered to be slow and flaky. On the other hand - end-to-end tests can give the greatest confidence that your app is working. And if done right - can become an amazing tool for boosting developer velocity.
Detox is a gray-box end-to-end testing framework for mobile apps. Developed by Wix to solve the problem of slowness and flakiness and used by React Native itself as its E2E testing tool.
Join me on this workshop to learn how to make your mobile end-to-end tests with Detox rock.
Prerequisites- iOS/Android: MacOS Catalina or newer- Android only: Linux- Install before the workshop
How to Build an Interactive “Wheel of Fortune” Animation with React Native
React Summit Remote Edition 2021React Summit Remote Edition 2021
60 min
How to Build an Interactive “Wheel of Fortune” Animation with React Native
Top Content
Workshop
Oli Bates
Oli Bates
- Intro - Cleo & our mission- What we want to build, how it fits into our product & purpose, run through designs- Getting started with environment set up & “hello world”- Intro to React Native Animation- Step 1: Spinning the wheel on a button press- Step 2: Dragging the wheel to give it velocity- Step 3: Adding friction to the wheel to slow it down- Step 4 (stretch): Adding haptics for an immersive feel
Deploying React Native Apps in the Cloud
React Summit 2023React Summit 2023
88 min
Deploying React Native Apps in the Cloud
WorkshopFree
Cecelia Martinez
Cecelia Martinez
Deploying React Native apps manually on a local machine can be complex. The differences between Android and iOS require developers to use specific tools and processes for each platform, including hardware requirements for iOS. Manual deployments also make it difficult to manage signing credentials, environment configurations, track releases, and to collaborate as a team.
Appflow is the cloud mobile DevOps platform built by Ionic. Using a service like Appflow to build React Native apps not only provides access to powerful computing resources, it can simplify the deployment process by providing a centralized environment for managing and distributing your app to multiple platforms. This can save time and resources, enable collaboration, as well as improve the overall reliability and scalability of an app.
In this workshop, you’ll deploy a React Native application for delivery to Android and iOS test devices using Appflow. You’ll also learn the steps for publishing to Google Play and Apple App Stores. No previous experience with deploying native applications is required, and you’ll come away with a deeper understanding of the mobile deployment process and best practices for how to use a cloud mobile DevOps platform to ship quickly at scale.
Effective Detox Testing
React Advanced 2023React Advanced 2023
159 min
Effective Detox Testing
Workshop
Josh Justice
Josh Justice
So you’ve gotten Detox set up to test your React Native application. Good work! But you aren’t done yet: there are still a lot of questions you need to answer. How many tests do you write? When and where do you run them? How do you ensure there is test data available? What do you do about parts of your app that use mobile APIs that are difficult to automate? You could sink a lot of effort into these things—is the payoff worth it?
In this three-hour workshop we’ll address these questions by discussing how to integrate Detox into your development workflow. You’ll walk away with the skills and information you need to make Detox testing a natural and productive part of day-to-day development.
Table of contents:
- Deciding what to test with Detox vs React Native Testing Library vs manual testing- Setting up a fake API layer for testing- Getting Detox running on CI on GitHub Actions for free- Deciding how much of your app to test with Detox: a sliding scale- Fitting Detox into you local development workflow
Prerequisites
- Familiarity with building applications with React Native- Basic experience with Detox- Machine setup: a working React Native CLI development environment including either Xcode or Android Studio
Building WebApps That Light Up the Internet with QwikCity
JSNation 2023JSNation 2023
170 min
Building WebApps That Light Up the Internet with QwikCity
WorkshopFree
Miško Hevery
Miško Hevery
Building instant-on web applications at scale have been elusive. Real-world sites need tracking, analytics, and complex user interfaces and interactions. We always start with the best intentions but end up with a less-than-ideal site.
QwikCity is a new meta-framework that allows you to build large-scale applications with constant startup-up performance. We will look at how to build a QwikCity application and what makes it unique. The workshop will show you how to set up a QwikCitp project. How routing works with layout. The demo application will fetch data and present it to the user in an editable form. And finally, how one can use authentication. All of the basic parts for any large-scale applications.
Along the way, we will also look at what makes Qwik unique, and how resumability enables constant startup performance no matter the application complexity.