News for hackers. Stuff that matters.
Re:Svelte Native: The Svelte Mobile Development Experience by wharvle on Monday January 29, 2024 @04:57PM (#39183289)
At the time I used it, it was almost worth it just to use RN for Android even if you did iOS in Swift, just because styling on Android was so hellish ("There must be some non-crazy way to set a default typeface for my app. Right?" LOL wrong; "setting this color on this Material input field must be easy" LOL nope, welcome to Java metaprogramming just to set a goddamn color), the documentation-suggested way to structure apps was so bad that you'd be reaching for other solutions anyway if you valued your sanity (I wanna say Square was at the forefront, here? It was some company like that. Like your best bet was just to find their libraries and blog posts and do exactly what they did, ignore the official docs), and in some cases the native libraries for Google APIs were less-capable than the Javascript ones anyway (Maps was one, I remember—god, what a surprise that was to find out).

But that was like 5 years ago so maybe it's gotten better.

Re:Svelte Native: The Svelte Mobile Development Experience by jamil7 on Monday January 29, 2024 @06:32PM (#39184247)
Although I haven't used it, Jetpack Compose exists now, so that and SwiftUI are pretty similar. On a previous project I was contracting on, the CTO managed to bash out a basic Android version of the iOS app I was working on without any Kotlin experience by going through the SwiftUI views one by one and implementing them in Jetpack Compose.
Re:Svelte Native: The Svelte Mobile Development Experience by rareitem on Monday January 29, 2024 @05:07PM (#39183390)
I agree with you. RN still sucks on some aspects, but it's quite an amazing technology and I'm grateful it exists.
Re:Svelte Native: The Svelte Mobile Development Experience by fakedang on Monday January 29, 2024 @05:30PM (#39183660)
Nah, among cross-platform, RN has stagnated while Flutter has sped past.

The key issue I see these days is that it's just not worth it to build a mobile app these days unless your payment flow happens outside of the app.

Re:Svelte Native: The Svelte Mobile Development Experience by meowtimemania on Monday January 29, 2024 @06:28PM (#39184216)
I had bad experiences with it 7 years ago, but really good experiences with it recently. If you stick to native modules managed by expo you'll be in a great place! You can run into dependency hell if you use a random react-native npm module that was last updated 5 years ago.
Re:Svelte Native: The Svelte Mobile Development Experience by jitl on Monday January 29, 2024 @08:24PM (#39185241)
I think most users would prefer an RN app over a Flutter app, especially on iOS, because the RN app will feel much more native because it renders using native views, instead of a Skia framebuffer.
Re:Svelte Native: The Svelte Mobile Development Experience by willsmith72 on Monday January 29, 2024 @08:56PM (#39185492)
> it's just not worth it to build a mobile app these days unless your payment flow happens outside of the app

not true at all, 85% of something is better than 100% of nothing. This is coming from someone who hates mobile apps and apple's grip on them