Metro aims for sub-second reload cycles, fast startup and quick bundling speeds. Works with thousands of modules in a single application. Supports every React Native project out of the box. Instead of creating the full server, create a Connect middleware that answers to bundle requests. This middleware can then be plugged into your own servers. The port parameter is optional and only used for logging purposes. The onBundleBuilt function is optional, is passed the bundle name, and is called when the server has finished creating the bundle. Starts a full Metro HTTP server. It will listen on the specified host port, and can then be queried to retrieve bundles for various entry points. If the secureServerOptions family of options are present, the server will be exposed over HTTPS.

Features

  • Run a server and watch the filesystem for changes
  • Create a Connect middleware and plug it into a server
  • Sub-second reload cycles
  • Works with thousands of modules in a single application
  • Supports every React Native project
  • Fast, scalable and integrated

Project Samples

Project Activity

See All Activity >

Categories

System

License

MIT License

Follow Metro

Metro Web Site

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Metro!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript System Software

Registered

2021-12-21