diff --git a/example/metro.config.js b/example/metro.config.js index 93c1d11..593adfe 100644 --- a/example/metro.config.js +++ b/example/metro.config.js @@ -3,13 +3,19 @@ * https://github.com/facebook/react-native */ +const path = require('path'); + module.exports = { - transformer: { - getTransformOptions: async () => ({ - transform: { - experimentalImportSupport: false, - inlineRequires: true, - }, - }), + // workaround for an issue with symlinks encountered starting with + // metro@0.55 / React Native 0.61 + // (not needed with React Native 0.60 / metro@0.54) + resolver: { + extraNodeModules: new Proxy( + {}, + {get: (_, name) => path.resolve('.', 'node_modules', name)}, + ), }, + + // quick workaround for another issue with symlinks + watchFolders: ['.', '..'], };