React-native-code-push: Perform the update from native instead of JS

Created on 30 Jan 2020  路  2Comments  路  Source: microsoft/react-native-code-push

Would it be possible to do the bundle update entirely in the native code, instead of from the JavaScript?

Moving it over to the native code would give the following advantages:

  • you can't destroy the update mechanism by uploading a bundle that doesn't work well
  • you can update the bundle while the splash screen is still visible
  • you are not starting the React-Native app multiple times (messes up analytics on # app starts)
  • you are never showing an outdated bundle to the user (like the bundle bundled with the app)

It would probably require only a little bit of native code. So there would be little downside. And you can always use the existing JS calls to trigger an update whenever you want.

enhancement

Most helpful comment

Hey @yvbeek,

After some discussion, we came to the conclusion that we currently don鈥檛 have the resources for a big project like that, but we keep the issue open to keep on gathering folks interest in it.

All 2 comments

Hi @yvbeek,
Thank you for reporting!

We will discuss your suggestion with the team and will keep you updated.

Hey @yvbeek,

After some discussion, we came to the conclusion that we currently don鈥檛 have the resources for a big project like that, but we keep the issue open to keep on gathering folks interest in it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ninjz picture ninjz  路  4Comments

vira-khdr picture vira-khdr  路  3Comments

djw27 picture djw27  路  3Comments

quanzaiyu picture quanzaiyu  路  3Comments

chrisjrex picture chrisjrex  路  4Comments