Deploy your React Native applications with Module Federation to Zephyr Cloud using Metro bundler. The Zephyr Metro plugin integrates seamlessly with Metro's build process and enables micro-frontend architectures for React Native applications.
This detects your bundler and configures Zephyr automatically. Learn more →
For manual setup, continue below.
Install the Metro plugin and required dependencies in your project:
Metro bundler supports Module Federation through the @module-federation/metro package, allowing you to create host and mini applications (remotes) in React Native.
Mini applications expose modules to be consumed by host applications:
Create or modify react-native.config.js to enable bundling with Zephyr:
Bundle your mini application for different platforms:
Host applications load and orchestrate mini-applications:
Configure Zephyr dependencies in your host application's package.json:
For more details, see Remote Dependencies.