🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@react-native/metro-config

Package Overview
Dependencies
Maintainers
2
Versions
1126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native/metro-config

Metro configuration for React Native.

next
Source
npmnpm
Version
0.87.0-rc.2
Version published
Weekly downloads
3.2M
14.24%
Maintainers
2
Weekly downloads
 
Created
Source

@react-native/metro-config

npm npm downloads

Metro configuration for React Native. In React Native, your Metro config should extend either @react-native/metro-config or @expo/metro-config. These packages contain essential defaults necessary to build and run React Native apps.

See Configuring Metro for the full guide.

Usage

const {
  getDefaultConfig,
  mergeConfig,
} = require('@react-native/metro-config');

/**
 * Metro configuration
 * https://metrobundler.dev/docs/configuration
 *
 * @type {import('metro-config').MetroConfig}
 */
const config = {};

module.exports = mergeConfig(getDefaultConfig(__dirname), config);

Keywords

metro

FAQs

Package last updated on 20 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts