From d505de5910a22ab9a0d7429e6b88a81cd2594b9c Mon Sep 17 00:00:00 2001 From: yungblud Date: Fri, 1 Mar 2024 22:43:36 +0900 Subject: [PATCH] fix: add missing node_modules paths to metro.config.js of basic example app (#3555) --- examples/basic/metro.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/basic/metro.config.js b/examples/basic/metro.config.js index b09acb86..2572eb22 100644 --- a/examples/basic/metro.config.js +++ b/examples/basic/metro.config.js @@ -43,6 +43,10 @@ const config = { acc[name] = path.join(__dirname, 'node_modules', name); return acc; }, {}), + nodeModulesPaths: [ + path.resolve(path.join(__dirname, './node_modules')), + path.resolve(path.join(__dirname, '../../node_modules')) + ], transformer: { getTransformOptions: async () => ({ transform: {