Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

React Native multiple apps with one core code package

$
0
0

I have two applications written in React Native.Let's call them PRO version and LITE version. The PRO version has a huge technology debt (old react-native, no Typescript). The LITE version is up to date in terms of libraries and written in Typescript. Both apps have the same UI design, and similar functionality.

I want to achieve to still have two separate applications, PRO and LITE, but with one main code on which both applications rely.

In the beginning, I wanted to add the functionality of the PRO version to the LITE code and separate it by targets in iOS and flavors in Android. Unfortunately, there are a lot of external libraries like Firebase, Google Auth and I don't know if that would work.

The second solution is to create CORE code (in which there will be UI, common functionalities like Bluetooth connection to devices, etc.). But I don't know how to create such CORE MODULE and import it to individual applications. It's not, a white-label app.

Do you have any ideas on how to achieve such a solution?

PS. I do not use Expo.


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>