Skip to main content

Eventies - Multiple Codebase for React Native

This application is an implementation of Multiple Codebase for React Native.


This example consists of 3 applications. The host application which called eventies consumes simple-login and eventies-components.

Clone the samples repo using the following command:

git clone https://github.com/composiv/liveui-samples

Starting the Host Application - eventies

Move to the host application directory:

cd samples/eventies-multiple-codebase-react-native/eventies

Install required packages:

npm install

For IOS:

npx pod-install
npm run ios

For Android:

npm run android

Start Metro Bundler:

npm start

simple-login

This application is a traditional react-native application and can be run as follows:

cd samples/eventies-multiple-codebase-react-native/simple-login
npm install

For IOS:

npx pod-install
npm run ios

For Android:

npm run android

Start Metro Bundler:

npm start

The command above will also run the remote component that has specified on the liveui.config file.

To run remote component only:

npm run start-live

This command was defined on the scripts/package.json and runs @eclipse-muto/liveui start-native command. For more information about LiveUI CLI commands, please check it's documentation.

eventies-components

This application is a traditional react-native application and can be run as follows:

cd samples/eventies-multiple-codebase-react-native/eventies-components
npm install

For IOS:

npx pod-install
npm run ios

For Android:

npm run android

Start Metro Bundler:

npm start

The command above will also run the remote component that has specified on the liveui.config file.

To run remote component only:

npm run start-live

This command was defined on the scripts/package.json and runs @eclipse-muto/liveui start-native command. For more information about LiveUI CLI commands, please check it's documentation.