diff --git a/packages/metro-config/index.js b/packages/metro-config/index.js index c43b46a34b8cf9..091b7006e14cd7 100644 --- a/packages/metro-config/index.js +++ b/packages/metro-config/index.js @@ -77,6 +77,9 @@ function getDefaultConfig( watchFolders: [], }; + // Set global hook so that the CLI can detect when this config has been loaded + global.__REACT_NATIVE_METRO_CONFIG_LOADED = true; + return mergeConfig( getBaseConfig.getDefaultValues(projectRoot), config,