diff --git a/metro.config.js b/metro.config.js index 87ff4ad1b3a966..ba754a6fa13baa 100644 --- a/metro.config.js +++ b/metro.config.js @@ -46,20 +46,14 @@ if ( }); } else { module.exports = { - serializer: { - getModulesRunBeforeMainModule: () => [ - require.resolve('./Libraries/Core/InitializeCore'), - ], - getPolyfills, - }, resolver: { platforms: ['ios', 'macos', 'android'], extraNodeModules: { 'react-native': __dirname, }, }, - transformer: { - assetRegistryPath: require.resolve('./Libraries/Image/AssetRegistry'), + serializer: { + getPolyfills, }, }; }