Home > Enterprise >  How to make two apps with same code base in React native
How to make two apps with same code base in React native

Time:08-16

I have a client side app and i want to make vendor side with same code. As i have to just change some screens on vendor side. But when i install it, OS register both apps as same. And sees vendor side as an update which overwrites client side app when installed on same device. What i have to change so OS register both apps as different? I've tried changing package name in AndroidMenifest.xml, MainActivity.java and MainApplication.java. But it was still replaced instead of installing as a seperate app.

client side files: AndroidManifest <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.saloon">

MainActivity package com.saloon; MainApplication package com.saloon;

Vendor side files: AndroidManifest <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.saloonvendor">

MainActivity package com.saloonvendor; MainApplication package com.saloonvendor;

CodePudding user response:

You should change the Bundle ID for iOS and the package name for android.

  • Related