diff --git a/packages/community-cli-plugin/src/utils/loadMetroConfig.js b/packages/community-cli-plugin/src/utils/loadMetroConfig.js index ce3b6f36f4283d..22e6afd6724134 100644 --- a/packages/community-cli-plugin/src/utils/loadMetroConfig.js +++ b/packages/community-cli-plugin/src/utils/loadMetroConfig.js @@ -62,6 +62,7 @@ function getOverrideConfig(ctx: ConfigLoadingContext): InputConfigT { ...outOfTreePlatforms.map(platform => require.resolve( `${ctx.platforms[platform].npmPackageName}/Libraries/Core/InitializeCore`, + {paths: [ctx.root]}, ), ), ],