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.
- Run dev server for app 1 container:
yarn --cwd MicroAppOne start
- Run dev server for app 2 container:
yarn --cwd MicroAppTwo start
- Run dev server for Host application:
yarn --cwd Host start
- Build Host application:
yarn --cwd Host ios
/yarn --cwd Host android
- Run dev server for app 1 container:
yarn --cwd MicroAppOne start
- Run dev server for app 2 container:
yarn --cwd MicroAppTwo start
- Run dev server for Host application:
yarn --cwd WebHost start
It might be helpful to open Re.Pack's web dashboard to analyse artifacts:
- http://localhost:9000/dashboard for MicroAppOne container
- http://localhost:9001/dashboard for MicroAppTwo container
- http://localhost:8081/dashboard for Host container
For Android, you should to change localhost to 10.0.2.2
https://stackblitz.com/edit/github-l3cwda-lqkjpy?file=app1%2Fsrc%2FApp.js necolas/react-native-web#2273