DEV Community

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

Collapse
 
jcarraway profile image
Rett Carraway

Is the --projectRoot flag a metro config option? trying to set this up with the 0.59.0 release and running into haste map resolution issues for @babel/runtime

Collapse
 
brunolemos profile image
Bruno Lemos

Please refresh the page, I've updated the tutorial a few minutes ago with the new step related to projectRoot. You don't set --projectRoot anymore, you add it to metro.config.js.

Collapse
 
jcarraway profile image
Rett Carraway

ha - thank you. i had just made and tested the same update and got it working. cheers!