Live data from Hacker News

Shopify is moving from React Native back to Swift and Kotlin

shopify.engineering

331–340 of 962 posts

Re: Shopify is moving from React Native back to Swift and Kotlin

#331
post #312

It is the "why use python" for mobile. The native apps will definitely be better in terms of performance and UX. However, having 2 codebases means twice the tokens.

The problem isn't tokens but verification that the code works.

If you have enough of a budget, you can ask your agent to spawn two subagent to do independent audits of "your" work.

Re: Shopify is moving from React Native back to Swift and Kotlin

#332
post #306
post #220

Earlier quoted context omitted.

I wrote every single line of the react native app we ported, and maintained it for 9 years. So suffice to say, I'm familiar with the code. But I am going to always prioritize the user experience over a developer (like myself)'s need for satisfaction to see code. And a pure native app is _always_ going to behave better than react native. This gives me a chance to do that.

> And a pure native app is _always_ going to behave better than react native. Maybe iOS is better about consistency, but I've used enough horribly made Android apps that I would not expect one that's vibe coded to behave better than a professionally made react native version.

Maybe. Android might still be a mess, fair point.

Re: Shopify is moving from React Native back to Swift and Kotlin

#333

Models have gotten a lot better at generating native iOS apps. The main appeal of RN was being able to leverage your web devs for mobile dev. that's what I did at my last company. And it's fine for a startup, but eventually you want dedicated native engineers bc each platform really deserves its own technical masters who can optimize for it. But now that all code is generated, there's little upside to having an RN ap…

Nobody is talking about the real advantage of RN: Being able to release to the App Store without having to go through a review. That's so massive. Getting a bug fix out to users instantly, sneaking in optimizations, etc.. Sure, you need a review to release native code changes, and you should probably get a review if you have big feature changes just for the sake of Apple not banning you. But in practice, it removes o…

Over the air updates is SO valuable with react-native. Being able to ship hotfixes instantly to our users has saved our asses multiple times.

Re: Shopify is moving from React Native back to Swift and Kotlin

#334
The shared specs and tests seem like a big part of making this work. I'd be interested in a follow-up after a few months of shipping new features on both platforms. Does keeping behaviour consistent still take much coordination, or have the agents reduced that work too?

Re: Shopify is moving from React Native back to Swift and Kotlin

#335

Earlier quoted context omitted.

How are you evaluating the Android build if you don’t use Android and you don’t know Kotlin?

Seriously! What a bonkers thing to claim. "I had codex use maestro so I assume it made Android work well and idiomatically". It's a fine project to do but clearly they put zero value on being familiar with the project's codebase/stack and ecosystem, which makes me feel fear in my heart when I imagine the first "production is down" page coming in. I already hated mobile because it's so much harder to maintain than web…

I answered elsewhere that I don’t personally use Android phones but we have people on our team that do. Which is why I don’t want to personally claim that it feels native.

But yes we are having real Android users test it.

So it’s quite the contrary. I care MORE what real users say. I can only guarantee that the app does things when I tap. So I’m not trusting the agent on UX, only on functionality. But whether it feels native, I am relying on those users in our team.

Re: Shopify is moving from React Native back to Swift and Kotlin

#336
post #274

Models have gotten a lot better at generating native iOS apps. The main appeal of RN was being able to leverage your web devs for mobile dev. that's what I did at my last company. And it's fine for a startup, but eventually you want dedicated native engineers bc each platform really deserves its own technical masters who can optimize for it. But now that all code is generated, there's little upside to having an RN ap…

This is true in a very real sense – models can help you build native apps very quickly, no question. But how do you keep them from drifting apart from one another as you add/change features or design? Right now, there isn't much tooling for this. React Native's advantage of having a single source of truth for code hasn't quite gone away yet, imo.

I've only read about it from it showing up on hn[1][2], but you can use slick to convert your swiftui to jetpack compose for a andriod build from the ios source of truth

link to project: https://github.com/skiptools/skip

[1] https://news.ycombinator.com/item?id=41384144 [2] https://news.ycombinator.com/item?id=46706906

Re: Shopify is moving from React Native back to Swift and Kotlin

#337

Models have gotten a lot better at generating native iOS apps. The main appeal of RN was being able to leverage your web devs for mobile dev. that's what I did at my last company. And it's fine for a startup, but eventually you want dedicated native engineers bc each platform really deserves its own technical masters who can optimize for it. But now that all code is generated, there's little upside to having an RN ap…

Nobody is talking about the real advantage of RN: Being able to release to the App Store without having to go through a review. That's so massive. Getting a bug fix out to users instantly, sneaking in optimizations, etc.. Sure, you need a review to release native code changes, and you should probably get a review if you have big feature changes just for the sake of Apple not banning you. But in practice, it removes o…

This is so true, and I'm surprised that Shopify didn't mention it or that they don't use OTA updates.

Re: Shopify is moving from React Native back to Swift and Kotlin

#338
post #269
post #41

Earlier quoted context omitted.

And the “makes sense or not” part can change based on a bunch of factors. It’s actually pretty common for a new company to start fully native (only iOS, few features, limited scope), then switch ro react native/electron (need to support more surfaces, features are being developed too quickly), then back to fully native (can afford individual dev teams for each platform).

The main cost of two engineering teams shipping identical products in my opinion isn't the cost of those extra engineers, it is in the product and organizational challenges of keeping those two products that need to be identical in sync. I am very bullish on coding agents but would be wary of this turning into a mess.

This is a great point that I wish the Shopify article went into in more depth! Would love to hear if they considered this

Re: Shopify is moving from React Native back to Swift and Kotlin

#339
post #246
post #81

Earlier quoted context omitted.

> I think people in the tech community have probably also noticed that it's rather popular to have an absolute opinion on the goodness or badness of these tools. I don't think that's necessarily true. Nuance is a thing. These tools are bad, objectively! They give inferior user experiences, and waste resources (ever more important now with RAM prices what they are). But that doesn't mean I can't understand or even agr…

A badly made native app is worse than a well built react-native app. There are plenty of anti-patterns that will ruin your native app. In stories like this its much more likely that they just got sick of refactoring a big ugly code base so got buy in to throw it all away and starting over and the justification is native. Wait like 5 years and there will be a new react-native corss platform app because the native apps…

> A badly made native app is worse than a well built react-native app. There are plenty of anti-patterns that will ruin your native app.

Sure, but thats not an interesting observation unless there is something about react-native that makes those apps consistently higher quality than native apps.

On the other hand, like-for-like C/C++/Rust performs better than javascript in terms of CPU and memory use, so the null hypothesis is that re-implementing would , in fact, improve things. There's little reason to think a priori that the end result would somehow be worse.

Re: Shopify is moving from React Native back to Swift and Kotlin

#340
post #3

Earlier quoted context omitted.

I suspect we'll see a lot of large orgs doing this in the next year.

Definitely makes sense for a large org with massive resources (such as Shopify) to do this. But for everyone here pondering what to use for their startup or a smaller project, there are still important trade-offs. In the past few years I've launched multiple cross-platform Flutter apps and multiple native iOS and Android apps using Jumpstart iOS and Android (native templates from the GoRails guys which leverage web v…

Still loving flutter over here!

The vastly undersold topic to all of these is how many developers do you have?

We have the option of using flutter, or not launching an app at all. The concept of going full native is a non-starter.

I basically could not care what Shopify is doing because they have hundreds or thousands of people.

Post reply on HN