react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

React Native 0.45 support

Open sattaman opened this issue 9 years ago • 12 comments

Is React Native 0.45 supported yet?

sattaman avatar Jun 08 '17 08:06 sattaman

Hi @sattaman, thanks for reaching us, we will check for compatibility soon and will update this table. We also let you know if any updates.

sergey-akhalkov avatar Jun 08 '17 08:06 sergey-akhalkov

I run 0.45 in production with code push. Currently everything is okay.

apaul314 avatar Jun 10 '17 13:06 apaul314

Hey guys, I would recommend you to avoid of using CodePush with RN 0.45 for now, due to new version of RN has some breaking changes that does not allow CodePush to reload js bundle, in another words CodePush.restartApp and the following install mods are not work with RN 0.45: IMMEDIATE, ON_NEXT_RESUME, ON_NEXT_SUSPEND. I've also created new issue in RN: https://github.com/facebook/react-native/issues/14533

So I'll let you know if any updates.

sergey-akhalkov avatar Jun 15 '17 10:06 sergey-akhalkov

@sergey-akhalkov thanks for the warning. Sorry for confusion on iOS is everything is okay. Can confirm that im also encountered with the same issue on Android described above.

apaul314 avatar Jun 15 '17 11:06 apaul314

Ok @sergey-akhalkov so does that mean that if we use ON_NEXT_RESTART it's fine to still use RN 0.45 on both iOS and Android?

SudoPlz avatar Jun 15 '17 15:06 SudoPlz

Hi @SudoPlz, correct, ON_NEXT_RESTART install mode works well both for Android and iOS.

sergey-akhalkov avatar Jun 16 '17 10:06 sergey-akhalkov

Awesome, thanks Sergey!

SudoPlz avatar Jun 16 '17 10:06 SudoPlz

I haven't been able to CodePush work on RN 0.45.1, even with ON_NEXT_RESTART. I tried using the HOC and calling sync directly with the same results.

When I force quit the app to force the CodePush install, the app crashes. I've tested this on iOS.

maximeaubaret avatar Jun 21 '17 18:06 maximeaubaret

Same here, ~only works on restarts! But its really important to get ON_NEXT_RESUME running, seriously who is restarting his apps 💃 ? Anyone tried to manually download and refresh the bundle on the app resume event? I had a workaround some time ago.~

Just tested it again and it seems to work also on resume. Maybe its not reliable and sometimes fails for some reason?

nerdmed avatar Jun 22 '17 01:06 nerdmed

Also note that if you used the --mandatory flag it forces a restart, which will also cause a crash.

yaronlevi avatar Jun 22 '17 14:06 yaronlevi

Hey guys, the issue I've created https://github.com/facebook/react-native/issues/14533 is probably stuck, so I've investigated it deeper and I believe that I've implemented solution that should fix it - PR https://github.com/Microsoft/react-native-code-push/issues/901.

Could you guys please try this PR and let me know if it works or if you see any issues? Please also let me know if you see some improvements for this PR.

In case provided solution works - we'll release new version of react-native-code-push and I'll also try to prepare and publish PR in React Native.

sergey-akhalkov avatar Jun 22 '17 20:06 sergey-akhalkov

Closing this due to https://github.com/Microsoft/react-native-code-push/releases/tag/v3.0.0-beta has been released.

sergey-akhalkov avatar Jun 28 '17 12:06 sergey-akhalkov