Back to Expo

@expo/metro-runtime

packages/@expo/metro-runtime/README.md

latest444 B
Original Source

@expo/metro-runtime

Injects runtime code required for advanced Metro bundling features in the Expo ecosystem.

Usage

expo-router users do not need to install this package, it is already included.

js
yarn add @expo/metro-runtime

Import this somewhere in the initial bundle. For example, the App.js:

js
import '@expo/metro-runtime';

expo/metro-config will automatically move this import to be first in the bundle.