r/reactnative • u/hudalux • 3d ago
Question React Native OTA updates: best practices for shipping safely
https://bitrise.io/blog/post/react-native-ota-updates-best-practicesI work at Bitrise and we wrote this up for our blog, so there's a mention of our CodePush service at the end. One of our engineers wrote up how he ships OTA updates without breaking prod. It covers version targeting, like capping every range (>=2.0.0 <=2.2.25) so an update can't land on a future build you never tested it against. It also gets into install behaviour, staged rollouts, and why you should think twice before rolling back a DB schema change.
Curious which best practices we've missed, or what you'd add from your own releases.
6
Upvotes
1
u/East_Eye_2997 2d ago
Are code pushes the full js bundle or are they delta updates? For example if an apps js bundle is 100mb and a 1 line change would be insane to get 1m ppl to download 100mb for it
3
u/anthony-ball 2d ago
One thing I'd add: tie the runtime version to a fingerprint of the native side (expo-updates has a fingerprint policy for this) instead of a hand-bumped app version. That way an update can't land on a binary whose native modules don't match, which is the OTA failure that actually hurts. For anything that moves money, I'd also keep those flows behind a remote flag, since a kill switch takes effect faster than a rollback reaches everyone's device.
1
u/hedanio 51m ago
or just yolo it