Repack
https://re-pack.netlify.app/docs/getting-started
Sample code
https://github.com/callstack/super-app-showcase
https://github.com/msvargas/microapps-poc
https://github.com/zsajjad/RepackDemo
Getting Started - RepackDemo
https://blog.logrocket.com/repack-large-scale-react-native-apps/#building-demo-react-native-app
yarn - install the package
yarn start - run the development server
Android
adb reverse tcp:8081 tcp:8081
yarn android
build apk
need to edit "webpack.config.mjs" file
[name].bundle -> index.bundle
output: {
clean: true,
path: path.join(dirname, 'build/generated', platform),
filename: 'index.bundle',
chunkFilename: '[name].chunk.bundle',
publicPath: Repack.getPublicPath({ platform, devServer }),
},
yarn bundle:android
IOS
pod install
yarn ios
Example
Diagram 1

Diagram 2

Diagram 3
