Back to all episodes

RNR 375 - RNR Explains: EAS Update

29:09 E375
Robin Heinze, Mazen Chami

Robin and Mazen explain how Expo's EAS Update delivers over-the-air updates to React Native apps. They also cover what you can safely ship, how updates reach users, and why runtime versions and rollbacks matter. A practical guide to mobile development, with tips for a smoother app update experience.

 

Connect With Us!

 

This episode is brought to you by Infinite Red!

Infinite Red is a premier mobile app consultancy, especially focused on Expo and React Native, located fully remote in the US. We’re a team of 30 with highly experienced mobile app developers and have been doing this for over a decade. We are also one of the first development teams to adopt agentic coding in a way that keeps high quality standards and aren’t afraid to do things the old school way if we need to. If you’re looking for mobile app or React Native or Expo expertise for your next project, hit us up at infinite.red/radio.

Jed Bartausky:
Welcome back to another episode of the React Native Radio Podcast. Episode 375, RNR Explains EAS Update with Robin and Mazen.

Robin Heinze:
Hey Mazen, how's your Chain React talk coming?

Mazen Chami:
It's coming along. Yeah.

Robin Heinze:
We're getting pretty close to the big day.

Mazen Chami:
Yeah, we are. I mean, at the time of recording, my talk will be in two weeks and one day or something like that.

Robin Heinze:
Well, so if you're listening to this, Chain React's probably already happened.

Mazen Chami:
Probably.

Robin Heinze:
But this is your little time traveling behind the scenes peek.

Mazen Chami:
I had to pivot my talk idea. So I was focusing more on differences between React Native and Flutter, and I realized -

Robin Heinze:
The F word?

Mazen Chami:
Yeah, the F word, right? I realized I wasn't giving Flutter enough. I was letting AI do all the Flutter code and I didn't know what it was doing necessarily. And I got to the point where I was like, I want to spend more time understanding it before I give a talk on it. So I kind of tabled that idea and came back to a talk that Gant and I gave at CascadiaJS back in, I believe, September of last year, so September of 25, where we talked about on vector databases on your device. So I will be revisiting that topic and giving that talk at Chain React. But Chain React's more of a React Native conference, so we'll be more React Native focused and think of it as a 2.0 version of that talk because that talk was at a web conference.

Robin Heinze:
Oh, well that'll be fun.

Mazen Chami:
Yeah.

Robin Heinze:
Yeah. Your talk was on the website as TBD for the longest time, so it's nice that we finally get a good idea for what you're going to do.

Mazen Chami:
Yeah, exactly. So now I'm just working on changing it up to be more React Native focused, get the topic through what are vectors and why are they important in today's AI world. This is AI, but it's AI on device, which is a little bit different. So yeah, you'll just have to come and hear the talk. So hopefully if you're coming, let's chat. And if it's passed by the time this episode comes out, I hope you can listen on YouTube to the talks and ask questions.

Robin Heinze:
Cool. All right. Well, we should probably talk about what we're going to talk about.

Mazen Chami:
So yeah, let's start getting into it. I'm Mazen, your host, staff software engineer here at Infinite Red, and I'm joined by Robin, who's also our host and director of engineering here at Infinite Red.

Robin Heinze:
Hello.

Mazen Chami:
But before we get into our topic, as we always do, let's hand it over to our sponsor.

Jed Bartausky:
Infinite Red. Infinite Red is a premier mobile app consultancy focused on Expo and React Native. We're a team of 30 that's located fully remote in the US with highly experienced mobile app developers, and we've been doing this for over a decade. We're also one of the first development teams to adopt agentic coding in a way that keeps high quality standards while also being able to dive in and do things the old school way if we need to. If you are looking for mobile app, Expo or React Native expertise for your next project, hit us up at infinite.red/contact. Thanks. And now back to the episode.

Mazen Chami:
It should be done by now,

Robin Heinze:
Right? I hope so. We gave them enough time.

Mazen Chami:
I know, right? Yeah. So if you're listening to this, we're talking RNR Explains. We've brought this series back. I think at this point, a couple episodes have come up. So

Jed Bartausky:
We

Mazen Chami:
Are going to talk about OTA, over the air updates. This has been one that's there and it's like magic for us React Native devs, and native devs don't have access to this, so it's like, haha. But Robin, what are over the air updates? Why do they exist? Why do we even need them?

Robin Heinze:
Over the air updates are something that's actually unique to React Native. It's React Native superpower hack, which is that changes can appear in the app without having to go through an app store update. And they do that by changing out the JavaScript bundle from the build. And we'll talk in a minute about how that actually happens, but that's the idea is that you can sort of magically swap in changes without having to get a new version approved in the store.

Mazen Chami:
And I think that the main asterisk here is don't try to do this to work around store guidelines and stuff. They'll find it, they'll shut you down. Think of this as quick. You have a crash in production that is, and we'll get into the details later as to why, but that is JavaScript specific, make that fix, push it over the air to your users, but then still go ahead and go to the app store for release. In today's world, they're getting a little bit faster. I remember back in the day, you'd have to wait weeks before an update happens, so weeks to days and stuff like that. Now I've heard of it happening in a day or two, so less relevant, but still you get this quick patch. If you see Bugsnag or Sentry or whatever you use start spiking, figure out what it is, get that patch out and then release it to the App Store.
I do know App Store, I don't think this applies to the Play Store, has an expedited review and I have used that for our client and that took about from submitting it to the expedited review and you say why you're submitting it for an expedited review to getting released to the store was about six hours. So in the grand scheme of things, not bad, not bad.

Robin Heinze:
But I mean, so what we're talking about for the types of changes are text changes, style changes, things that are only in JavaScript and wouldn't need review. So you don't have to take the time that it's going to take for a review just to do this change that wouldn't need to be reviewed anyway. So again, don't think of it like it's doing anything shady to get around the app store review guidelines.

Mazen Chami:
Because when you come back again for that review on your next version, they'll probably catch it and you're back at square zero at that point. We do also want to mention this initial concept started back when Microsoft had CodePush. You may have all heard of that, but in 2025 they dropped it, dropped support for it, so it went away. But it did come back. It's back apparently. The team over at Codemagic did bring it back from the dead, so it's there. But I think in today's world, the de facto one that we all use or know of is EAS updates if you're using Expo. If you're not -

Robin Heinze:
Which is funny because CodePush used to be the de facto one that everyone

Mazen Chami:
Used. Correct.

Robin Heinze:
And then it kind of atrophied and Expo came in.

Mazen Chami:
If you're pure native, you probably took the open source CodePush, made your own, made it work or just pivoted or used that as a reason to go to Expo. So yeah, there's that.

Robin Heinze:
So on RNR Explains, we read the docs so you don't have to. So how do over the air updates actually work? What's the magic underneath the magic? The tech underneath the magic,

Mazen Chami:
I

Robin Heinze:
Should say.

Mazen Chami:
So I guess the best way to start with this, Robin, is what is underneath the hood in React Native? Let's start with that.

Robin Heinze:
Well, you have a native layer, which is your Swift, Objective-C, Java, Kotlin, native modules, permissions, entitlements, the stuff that's actually the native app that it would have in common with any other iOS or Android app. So yeah, there's the native layer and then there's the JavaScript layer, which is what we probably spend most of our time in as React Native developers, but that's your components, your business logic, your styles, your images, your fonts. If your fonts are loaded via require, I think there's native fonts also, but there are also JavaScript fonts. But I mean, it's what you think of when you think your day-to-day React Native. You've got your TypeScript and your JavaScript files, and that's where you sort of define how your app works. And then React Native compiles that down into a bundle and puts it into the native layer and it ships it as a native app.
I'm

Mazen Chami:
Going to think of it as a stack, almost like an app sandwich here. React Native, our bottom sandwich is more of a native layer. Then for our JavaScript, you have our meats, your cheese, and then on top of it you have your regular app, what's all baked into your binary asset. This is what's read on launch, as you said. Okay. Now two things, right? We talk about our app. Now what happens when you push an over the air update onto your app? What is that app? Is that the same app or is it a little bit different?

Robin Heinze:
So a regular React Native app that's shipped to the store has it, like you said, has its JS bundle baked into the binary. That's what it does. It reads the JS bundle on launch. An app with over the air updates enabled is the same thing. It's a binary and it's got a JS bundle baked in. But that bundle is ultimately just going to be what's called the day one fallback. It's going to be the backup in case any of the over the air update bundles fail.
And it's going to get replaced as soon as there's a new over the air update. So what it's going to do is when it launches, it checks a manifest URL. It just reaches out to this URL and says, "Hey, is there a new bundle for me?" And if there's not, it's just going to use the binary or the bundle that was baked into the binary when it shipped. If there is a new one, it's going to download it, put it in private storage, and then on subsequent launches, it's going to grab that bundle from the cache instead of the one that was originally embedded in the binary, if that makes sense. So basically the only difference between an app without OTA enabled and one with OTA enabled is just a little bit of code that checks the manifest URL on launch to look for new bundles and a little bit of native code that knows how to reach into the private storage and grab the bundle that was downloaded rather than the one that was baked into the binary.

Mazen Chami:
Okay. So you said manifest URL. That to me sounds like something that's not necessarily on the app, right? You can self-host this, right? Or EAS can host it for you.

Robin Heinze:
Right. Yeah. So EAS can host your bundles and your manifest URL, or you can self-host your bundles and your manifest URL. And when you set up EAS, you'll just be telling it what the URL is that it needs to go look for new bundles, and that manifest URL will also give the links to the bundles, which will be on your self-hosted server instead of Expo servers.

Mazen Chami:
Nice. Okay. Yeah. And the main thing to keep in mind, it's not live streamed. So every time you make a new update, you have to then re-push it per se. So you can't just be like, "Okay, it knows it's on this URL. I'm just going to change that URL randomly. And every time someone opens my app, it streams a new one." Nope, downloaded once, cached, and it's all local at that point after it's cached.

Robin Heinze:
That was actually a misconception that I think I had, and a lot of people probably also had, was that when you set up OTA, it means that instead of getting your bundle from the binary, it grabs it from a URL every single time and it's just hitting a live URL the same as if you're doing local development, right? Yes.

Mazen Chami:
Over the

Robin Heinze:
Air. And your bundle is hitting localhost 8080 or whatever it is. That's not the case. All it's doing is it's asking this endpoint, "Hey, is there a new bundle for me?" And then if there is, it's downloading it one time and then it uses it from storage.

Mazen Chami:
It's cached.

Robin Heinze:
So that's a misconception that I think is probably floating around.

Mazen Chami:
Agreed. Yeah. Yeah. So it's only replacing this URL once. And I think right now as of SDK 55 and above, and with Hermes bytecode diffing, what is downloaded might not be the full bundle. It just pulls the diff, whatever the difference is with the delta is, it pulls down that diff and updates that diff within its local bundle. And that is for speed, efficiency, poor internet connection. You don't want the user just sitting there with a loading state necessarily.

Robin Heinze:
Much easier to download a diff than it is to download a whole bundle. And that's a really cool thing that's made possible by Hermes bytecode diffing.

Mazen Chami:
Absolutely. Shout out to the Hermes. Also for pointing that out for us while we're prepping for this episode.
Here's the next part now. Let's talk about, this is where I think, so we've talked about what's happening underneath the hood, who's handling what. Now life cycle. So what happens? One thing that we implemented on our client app recently was making sure... Okay, I want to back up a little bit. This part gets a little bit confusing also, and you want to make sure you have the right user experience. So what happens? Your app boots up, it checks. Is there anything new for me at my host, wherever your host is? If there is, it downloads it. Once it's downloaded, you then need to apply it. So that's when it takes effect, but doesn't take effect then. There needs to be a sort of restart of the app or force it by using Updates.reloadAsync, that's the E-A-S verbiage, which then causes a visible reload. So there's going to be some sort of screen flash, app closing and reopening, some user experience that's not necessarily ideal for your user experience, but that's something that you're going to have to figure out how best to do that.
Or there's been the debate where we talked about it within our client was if it's not a breaking... If we don't have a bug that's causing crashes in production, what if this all happens in the background? App boots, it finds something, it applies it, but it only applies it when the user closes out their app and then reopens it. At that point, it gets applied silently essentially.

Robin Heinze:
Right. So it takes essentially two tries. So when there's a new one, the user doesn't actually get it until the next time they cold open their app. Which is, like you said, if you're not trying to fix an active crash, it's just a styling or a text or some other sort of innocuous update, it's probably not a big deal for them to have to wait a little bit longer to get it, especially if it means they have a more seamless update experience.

Mazen Chami:
Yeah. And keep in mind, that's two cold starts after this is published and applied to your bundle. So luckily for us, Apple and Google do this in the background. For some people, they don't necessarily swipe their apps up and officially close them out. After a certain period they time out and then they actually do restart. So it's a cold start for us at that point. So it's a weird life cycle. It depends on you and your importance of how you have this flow happen, if you want the user to see it and apply it or not. We know Discord is React Native. Discord has that whole, when you tap the update, you see it downloading and the app actually closes and reopens and then it's applied within there.

Robin Heinze:
I would imagine if you wanted to set it up in such a way that you can specify on a particular update whether it's a forced one. And so if it is a forced one, if you've indicated that some way in your manifest URL payload, then it will show the user a prompt and then actually they tap yes and it actually updates right then and there. So I imagine you could set it up that way if you wanted the ability to make some updates more urgent basically.

Mazen Chami:
With a more delightful user experience, right? I think that's the key for me specifically as a front end engineer.

Robin Heinze:
Some users don't want updates. I know there's people in my family that are still running, I don't know, a really old version because they're like, I don't want to update. I never want to update anything ever.

Mazen Chami:
I think I've said this. Everyone knows when I get ahold of their phone, that means I'm updating it or even their computer.

Robin Heinze:
Updating everything.

Mazen Chami:
Yeah. I've had moments where I'll be upstairs or something and I just hear my wife screaming, Mazen, what'd you do to my computer? Hey, all I did was

Robin Heinze:
Apply an update. Everyone has different traumas around things that updated when they didn't want and then it changed everything. But then there's techie people like us who associate updates with cool new things. Security patches

Mazen Chami:
And stuff. Right.

Robin Heinze:
Things working better and doing more.

Mazen Chami:
Yeah. Just the other day, again, she yelled, she was like, "My battery doesn't hold anymore. What update did you do?" That one was actually not me. I don't know what happened. Anyway. We digress, I guess.

Robin Heinze:
We digress. Yeah, let's talk really quick again. We touched on it already, but safe versus not safe to ship via OTA. Safe, JavaScript only, business logic changes. So changing stuff in your model layer or your API layer or changing stuff in your components or changing stuff. If it's in a TypeScript file, it's probably okay. The exception is app.config.ts, which is a TypeScript file, but it drives native code changes. And so then that's the side where we're not safe. So native code changes directly or changes to native code generation, which would be your app config, your config plugins, things like that. Those are not safe.

Mazen Chami:
Exactly. Yeah, that's a very important one. Even though it has a .ts file, might not be safe. So question, what if I forget that and I push the update? What would happen to my end user if I were to call a function or an API that required that native build update?

Robin Heinze:
It would crash. That's the risk is that if you've pushed a bundle of JavaScript that directly or indirectly ends up calling a native method that does not exist in the build, it's obviously going to crash. Now there are some safety nets. One, if a new bundle crashes within 10 seconds, EAS will actually automatically roll back to the last known good bundle.

Mazen Chami:
Nice. That's helpful.

Robin Heinze:
Yeah, it is. That's actually pretty cool. Also, if you've got network issues and nothing downloads when it tries to download the bundle, it'll just fall back to the original. That's the one we talked about. The one baked into the binary ends up being the fallback because it's the one that's known and guaranteed to work with that particular build. And then there's also EAS update rollback, which is a manual step you can do if you realize you just pushed a borked bundle, you can roll back manually. So yeah, there are some safety nets, but it's definitely something to be aware of and to test pretty thoroughly before you send something out there into the world.

Mazen Chami:
And again, keep in mind, any rollback you do, even the whole 10-second one that EAS does, the safety net, that still does require another cold restart for it to then get applied and installed within there. So safety net, but also requires, still has that high user experience bar there. Cool. Now let's put this in practice since EAS is the de facto way to do it that we're all doing, spoiler. Well, not spoiler, I think we've mentioned it on here, but Chain React 2024, that app that we had in the store at that point, that was fully 100% done via EAS in general. That EAS was still brand new and we actually did use EAS updates, EAS submit within it. We didn't have a UI specifically for update, if I remember correctly, but we did push one update during the conference that we felt like was just random.
So

Jed Bartausky:
Yeah,

Mazen Chami:
That was Frank and I, we did it while we're watching, listening to a talk. We're like, we'll see what breaks. But cool. Okay. EAS updates in practice, let's talk about it real quick. Setup, I'll run through the setup real quick. npx expo install, you need to have Expo set up. You're also going to add an expo-updates. Then we need EAS update colon config where you wire it up, you tell it what your URL updates that URL is, your runtime version and all that. We'll get into what those details are later, but you run through the config and you set things up. If you just click enter, enter, enter, enter, basically what that does is you let EAS handle it all for you in their dashboard, which if you go to expo.dev and you find your app within there, all those details will be listed out there.

Robin Heinze:
So the runtime version, which you just mentioned, is what it sounds like. It's a version string and it's stamped on both the build and the update so that it's always clear which updates, a.k.a. JavaScript bundles, are compatible with which builds. In order for an update to be able to apply to a build, it has to have the same runtime version. They have to exactly match. And so that's the number or it's a string technically, it's like a number string, but you're going to bump that whenever native code or configuration changes so that old builds can't accidentally run an incompatible bundle because as soon as that runtime version changes, then all the bundles that had old runtime versions can't be applied accidentally. So that's runtime version. Then we have the concept of channels and branches. So channels are basically just a label on a build that's like, what stream of updates do I want to listen to?
So think production channel or preview channel or alpha channel. You can name them whatever you want, but it's basically just so that there could be multiple different builds out in the wild that know which type of updates they're going to listen to because you're probably going to have a production build out that your users are actually using that you're going to be pushing updates to, but you'll also have preview builds that your stakeholders and testers and stuff are going to be running and you want to push updates to those too and you want to be able to specify where you're going. So that's really just all a channel is doing. And then a branch is just a little bit more -

Mazen Chami:
Granular.

Robin Heinze:
A little bit more granular than a channel. So a particular channel, say your preview builds, you're kind of testing two different features and you want to push a branch with feature A to the preview builds or the people who have the preview build installed, you want to push feature A branch and that's just a list of commits essentially. And then you want to switch it to feature B, and that has a different list of commits. Both of them are compatible with the preview builds runtime version. They're just two different bundles, if that makes sense.

Mazen Chami:
And that could be helpful if you're doing A/B testing. You want to push out a specific, well, both sides of it, right? You want to push out a specific feature to get tested and see how it does out in the wild, or even the other side of that where you did push out version A to see how it does in the wild, but it has a bug, so you want to fix it but not affect version alpha, what's it called? A/B testing. So B testing version.

Robin Heinze:
So yeah, you can get a little bit more granular within a particular channel about which branch is pointing to. So yeah, channels and branches. In practice, the people we've talked to have said they don't really find that they need branches. They get by with only channels, which is fine. They're there if you need them, but it's okay if you feel like, why do I need branches? I'm only using channels. That's fine. It's totally normal. Right. So how you actually publish an update? Well, you run an EAS update. And basically all that's doing is it's running expo export, which bundles the JavaScript into an artifact, like an exportable

Mazen Chami:
Artifact. Expo build plus some other stuff.

Robin Heinze:
Right. Yeah, right, exactly. Expo export and then uploads it to a spot on an Expo server that is referenced in your manifest URL. That's it.

Mazen Chami:
Yep. And then -

Robin Heinze:
That's really all

Mazen Chami:
It's doing. An EAS update knows that, hey, this was uploaded and it's a different bundle to what you had before.

Robin Heinze:
Right.

Mazen Chami:
So next time we open up, we need to go through the whole process.

Robin Heinze:
It tags it with the right metadata so that your apps that are in the wild, which are already set up to check your manifest URL to see if there's new bundles. When they check, they'll be like, oh, there's a new bundle. That's really all it is. It's much simpler than I think some people think because it feels so magical, but it's really just API calls back and

Mazen Chami:
Forth. It is magic. Let's not -

Robin Heinze:
Uploads.

Mazen Chami:
It's like Christmas.

Robin Heinze:
You're uploading a file, you're checking the URL, you're downloading a file. Yeah.

Mazen Chami:
And then the dashboard on, I mentioned it earlier, expo.dev does give you stats around all this percentage for the rollout, user segmentation that you can roll it out to. There's a lot of fancy stuff where you can target specific people. Again, if you're doing something like A/B testing, but if all it is is, "Hey, production has a crash, we need to fix it. EAS update, channel production, enter and just get it done." Actually,

Robin Heinze:
I think user segmentation, you would have to build that yourself if you wanted user segmentation.

Mazen Chami:
Yeah. Yeah. There's the granularity that comes around with that. So there's a lot of cool stuff outside of what we just mentioned, just channel and branch within there. Cool. Anything else?

Robin Heinze:
That's it. I mean, that's basically it. So we read the docs so you didn't have to. That's how over the air updates work.

Mazen Chami:
I hope this was helpful. And I think for our listeners, if that was helpful, please reach out, let us know what we should cover next in RNR Explains. This was one that I think we both learned a lot from just looking at it and reading the docs and digging into it. It sounds easy in theory and thanks to Expo, developer experience is easy. And all we're doing is helping our user get to that delightful experience quicker and avoid any crashes in production. We don't want to have crashes in production. No one does. So use that EAS update to your advantage, fam. Well, that's it for the episode. But before we go, as we always do, Robin, do you have a mom joke for us?

Robin Heinze:
I do. Okay. Are you ready?

Mazen Chami:
Let's do it.

Robin Heinze:
A slice of pie costs $2.50 in Bermuda, $3.50 in Jamaica, and $5 in St. Thomas. Those are the pie rates of the Caribbean.

Mazen Chami:
Good one. I like that one. Well, this episode was not brought to you by the Pirates of the Caribbean and I hope you had a

Robin Heinze:
Good - Disney, please don't get mad at us for copyrighting.

Mazen Chami:
We will cut that out if you want us to. All right.

Robin Heinze:
Mazen won't be

Mazen Chami:
Sad about

Robin Heinze:
It.

Mazen Chami:
We'll just cut that part out. I thought it was a cool way to end it out. Anyways. All right. Thank you all. It was nice and we'll see you all next time.

Robin Heinze:
All

Jed Bartausky:
Right.

Robin Heinze:
Bye.

Jed Bartausky:
As always, thanks to our editors, Tyler Williams and Jed Bartausky, our marketing and episode release coordinator, Justin Huskey, and our guest coordinator, Mazen Chami. Our producers and hosts are Jamon Holmgren, Robin Heinze, and Mazen Chami. Thanks to our sponsor, Infinite Red. Check us out at infinite.red/radio. A special thanks to all of you listening today. Make sure to subscribe to React Native Radio on all the major podcasting platforms.

 

A close-up of a speaker in a gray shirt presenting onstage. A smiling conference attendee in front of a pink presentation screen. A smiling conference attendee with glasses and an orange lanyard chatting with others. A smiling conference attendee reaching across a table.

Ready or not ...
Let's talk.

There’s no perfect time to get started. Whether you have a formal proposal or a few napkin sketches, we’re always happy to chat about your project at any stage of the process.

Let's set up a call →