Single Bundle React Naitve
Single bundle is a plugin that makes multiple react native components implementation stable, increase performance and it is more efficient and easy to handle in a native app. This plugin gives ability to change version of react native and react. It also aggregate all react native plugins into one single bundle and upload it to S3. Plugins becomes modules under the names specified as plugin identifiers from plugin configuration.
Add "Single Bundle Plugin" to project configuration
"single bundle plugin" and from available list of versions of
react-native-zapp-bridge (Applicaster standard bridge for communicating react native with Applicaster SDK) please select the one which is supported by your plugins.
Save plugin configuration and rebuild.
Please note rebuild is necessary every time you change versions or adding/removing other react native plugins.
Make sure plugins support selected versions
Your React Native plugins need to be built and published to NPM for selected versions of react and react-native.
Migrate your plugins
In order to make Single Bundle aggregator work please make sure all your react native plugins has been migrated and published to npm as following Migration Guide instructions advice.
RUNNING LOCAL SERVER FOR SINGLE BUNDLE
In Zapp-Android folder execute command :
bundle exec rake single_bundle_aggregator:build.
Rake task will create a folder
single-bundle-aggregator - this is your local server for single bundle.
If you wish to debug package inside your single-bundle please place the package folder inside
single-bundle-aggregator/packages. Please edit
single-bundle-aggregator/index.js to give information about local packages.
Local single bundle is ready to run.
PLUGIN IS MISSING EXPECTED VERSIONS?
The Zapp Team can add version when territories have tried specific version in development and confirm it is working.