DEV Community

Discussion on: Tutorial: How to share code between iOS, Android & Web using React Native, react-native-web and monorepo

Collapse
 
mschipperheyn profile image
Marc Schipperheyn

Ok, I identified the problem. The packages/mobile/metro.config.js is not processed. The projectRoot remains packages/mobile instead of ``

Collapse
 
xoagop profile image
Anna Fröblom

Hi,

I'm facing the same problem. Did you manage to solve why the metro.config.js wasn't processed?

Thread Thread
 
brunolemos profile image
Bruno Lemos

Current solution is to set --projectRoot ../../ at the package.json start script instead of metro.config.js, like it used to be before. Not sure if it's a bug or not.