This monorepo contains all the tools you'll need to adapt your React Native apps and start using Module Federation with Metro bundler.
@module-federation/metro
- Core integration with Metro to enable Module Federation@module-federation/metro-plugin-rnc-cli
- React Native CLI integration@module-federation/metro-plugin-rnef
- React Native Enterprise Framework integration
Note: Module Federation support for Metro bundler is still experimental and may lack some functionality or certain integrations.
For detailed setup instructions and configuration options, see the Metro Module Federation Core Package README.
The configuration follows the standard Module Federation configuration format. For detailed information about Module Federation concepts, configuration options, and usage patterns, please refer to the official Module Federation documentation.
This repository includes several example applications to help you get started:
- example-host - Basic host application that consumes remote modules
- example-mini - Basic mini application that exposes modules
- example-nested-mini - Mini application with nested module dependencies
- showcase-host - Showcase host application
- showcase-mini - Showcase mini application
For instructions on how to run these examples, see Running Examples in our Contributing Guide.
For detailed information about available CLI commands see the React Native CLI Plugin README.
For detailed information about RNEF integration and configuration, see the RNEF Plugin README.
We welcome contributions! Please see our Contributing Guide for details on how to set up the development environment and run examples.
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ by Callstack and Zephyr Cloud.