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

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
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