React-native-code-push: Can multiple lib project use code-push in one app?

Created on 27 Dec 2016  Â·  6Comments  Â·  Source: microsoft/react-native-code-push

My app project includes several library projects, for example, UserCenterLib\AdLib.
For now, just use RN in UserCenterLib, but I'd like to use RN in both library in future.
(Both UserCenter and Ad contain a different react project submodule).
Will CodePush generate CodePushHash.json in both library?
If so, how to deal with the resource file conflict?

investigating question

Most helpful comment

@panarasi Sorry for the late late late response...

In short, I have multiple modules in my app. I 'd like to generate one bundle file for each module.
For example: module1.android.bundle, module2.android.bundle, module3.android.bundle...

Now, in my res folder , I have multiple .bundle and .meta files but only one CodePushHash file.
module1.android.bundle
module1.android.bundle.meta
module2.android.bundle
module2.android.bundle.meta
module3.android.bundle
module3.android.bundle.meta
...
CodePushHash (CodePushHash.json for old version)

So, My conclusion is CodePush can ONLY manage one JS bundle...
Unless adding a new API to config hash file for each bundle...

All 6 comments

@JuanbingTeam Could you help us understand the use case better please ? Is your project a native project where you try to include React Native twice ? Is there a sample repo that you could share to help us understand this case better ?

@JuanbingTeam Wanted to ping you see if you have more information on this.

Closing this for now, please feel free to reopen if you have any questions.

@panarasi Sorry for the late late late response...

In short, I have multiple modules in my app. I 'd like to generate one bundle file for each module.
For example: module1.android.bundle, module2.android.bundle, module3.android.bundle...

Now, in my res folder , I have multiple .bundle and .meta files but only one CodePushHash file.
module1.android.bundle
module1.android.bundle.meta
module2.android.bundle
module2.android.bundle.meta
module3.android.bundle
module3.android.bundle.meta
...
CodePushHash (CodePushHash.json for old version)

So, My conclusion is CodePush can ONLY manage one JS bundle...
Unless adding a new API to config hash file for each bundle...

My project is a huge project. There are several RN entrances.
Each entrance can config its own ReackPackages (CodePush).

@JuanbingTeam any updates on this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kevando picture kevando  Â·  4Comments

panarasi picture panarasi  Â·  4Comments

chrisjrex picture chrisjrex  Â·  4Comments

sergey-akhalkov picture sergey-akhalkov  Â·  4Comments

vira-khdr picture vira-khdr  Â·  3Comments