yarn --cwd MicroAppOne && yarn --cwd MicroAppTwo && yarn --cwd Host
App can be run as a standalone application using:
STANDALONE=1 yarn --cwd MicroAppOne start
(notice the dev server is running on port 9000)yarn --cwd MicroAppOne ios
/yarn --cwd MicroAppOne android
Or as part of a Host application.
App can be run as a standalone application using:
STANDALONE=1 yarn --cwd MicroAppTwo start
(notice the dev server is running on port 9001)yarn --cwd MicroAppTwo ios
/yarn --cwd MicroAppTwo android
Or as part of a Host application.
yarn --cwd MicroAppOne start
yarn --cwd MicroAppTwo start
yarn --cwd Host start
yarn --cwd Host ios
/yarn --cwd Host android
yarn --cwd MicroAppOne start
yarn --cwd MicroAppTwo start
yarn --cwd WebHost start
It might be helpful to open Re.Pack's web dashboard to analyse artifacts:
For Android, you should to change localhost to 10.0.2.2
https://github.com/msvargas/microapps-poc/issues/2
https://stackblitz.com/edit/github-l3cwda-lqkjpy?file=app1%2Fsrc%2FApp.js https://github.com/necolas/react-native-web/issues/2273