Re.Pack (React Native)
Deploy your React Native applications with Module Federation to Zephyr Cloud using Re.Pack and Rspack. The Zephyr Re.Pack plugin integrates seamlessly with Re.Pack's build process and supports cross-platform mobile applications.
- Finished our Prerequisites setup guide
- Installed our Chrome extension
This detects your bundler and configures Zephyr automatically. Learn more →
For manual setup, continue below.
Installation
Install the Re.Pack plugin in your project:
Basic Setup
Add the Zephyr plugin to your Rspack configuration by wrapping it with withZephyr:
Module Federation with Re.Pack
You can continue using your existing Module Federation configuration from Re.Pack. We recommend using the new Re.Pack Module Federation as it provides better runtime support for cross-platform applications.
For detailed Re.Pack setup, refer to Re.Pack's documentation and check out Callstack's Super App Showcase for reference implementations.
Host Application (Consumer)
Remote Application (Provider)
Shared Dependencies
Configure shared dependencies to ensure single instances of critical modules like React and React Native:
Platform-Specific Builds
Re.Pack supports platform-specific builds for iOS and Android. The ${platform} variable in remote URLs automatically resolves to the target platform: