An App sample with one base-app linked with other apps :
_ The Post list screen and Post details screen are in /packages/packageApp
_ The main app to be run is in /packages/baseApp
Use Terminal to go to
/packages/baseApp
Install all packages
yarn
Use XCODE to open baseApp.xcworkspace
/packages/baseApp/ios/baseApp.xcworkspace
Run the project
Core packages like react-native, react-navigation, redux have to be put inside "peerDependencies" so the plugin app will use those packages in the base-app to avoid conflicts
Go to the code
The base app must pass redux store and react-navigation objects to plugin app because those are global objects.
Go to the code
The plugin app will inject new property when redux store is passed, so its data can be stored seperatedly from the base app.
Go to the code