News for hackers. Stuff that matters.
Re:CS193p: Developing Apps for iOS by aero- on Wednesday February 10, 2021 @02:13PM (#26093418)
What would be an advantage going for swiftui vs. React Native for a startup? I feel like the cross platform nature of React would be more beneficial for starting a new platform or business. Of course swift will operate better for ios but is the tradeoff that great with React Native?
Re:CS193p: Developing Apps for iOS by reasonabl_human on Wednesday February 10, 2021 @03:32PM (#26094356)
Interested as well. I’ve heard a number of tech companies use react native on iOS targets which allows for easy reuse of components developed for web UI, and any mobile... certainly where I’d lean given the choice based on current information.

There was an engineering blog post from discord a number of months ago discussing their use of react native bottlenecking iOS app performance, and they ended up converting some key react data structures to native iOS constructs within the react native app and crushed those bottlenecks. My takeaway was that developer ease and reusability should be prioritized until you hit a performance wall at scale such as discord did, at which point you’ll have the money to pay other engineers to optimize the important parts of you don’t have the time or know-how ;)

Re:CS193p: Developing Apps for iOS by saagarjha on Wednesday February 10, 2021 @11:01PM (#26098116)
For a more balanced measure of Discord's performance, try using it on a five-year old iPhone.
Re:CS193p: Developing Apps for iOS by reasonabl_human on Friday February 12, 2021 @08:40AM (#26113505)
AFAIK that was the device subset they were optimizing for, I have an iPhone SE lying around so I’ll try it out.
Re:CS193p: Developing Apps for iOS by spideymans on Wednesday February 10, 2021 @03:40PM (#26094444)
React Native will get you to an MVP way faster than native/SwiftUI development. However there is the massive risk that you'll find yourself shackled to React Native if you want to grow the capabilities of your app to beyond what React Native can accommodate. React Native make development faster, but traditional native development is the safer option in the long term.
Re:CS193p: Developing Apps for iOS by jamil7 on Wednesday February 10, 2021 @03:39PM (#26094434)
The advice I give roughly to clients is to go native if your business heavily depends on mobile. Otherwise React Native is pretty viable, especially for small teams of generalists. In terms of SwiftUI, most businesses aren’t building entire apps in it yet.
Re:CS193p: Developing Apps for iOS by samirsd on Wednesday February 10, 2021 @03:58PM (#26094700)
i've never used react native but regularly use react for the web and find swift/swiftui development to be faster and less complicated overall