- cd into this directory
cd RNapp && npm install --no-optional && cd ..
(otherwise you will get an error that@scope/ui
could not be found. if you want to use yarn, make sure to remove@scope/ui
module from thepackage.json
before runningyarn
, you can add it back after the command has finished)mkdir RNapp/node_modules/@scope && cd RNapp/node_modules/@scope && ln -s ../../../ scoped-module ui && cd ../../
yarn start
- run XCode and try the app
- shut down the running instance of metro
- cd into this directory
mv RNapp/node_modules/@scope/ui RNapp/node_modules/@scope/linked-ui
cp -r scoped-module RNapp/node_modules/@scope/u i
cd RNapp && yarn start --reset-cache
- run XCode and try the app