Live data from Hacker News

Svelte Native

svelte-native.technology

21–30 of 93 posts

Re: Svelte Native

#21

Native is such an abused word.

They're making native calls.. Either through message passing, or through creating stubs.

You can literally use all of the iOS SDK directly.

Not sure why I'm downvoted.. https://old.nativescript.org/native-api-access/

It's the basis of their entire product. On top of that they've built cross-platform wrapper for many UI things. And on top of that, they've integrated several toolkits.

They just market it the other way around, which i.m.o. is not helping them with traction. Right now they're always competing with many other products (react native for example), even though they have a very unique product.

Re: Svelte Native

#22
post #2

Super, I love Svelte and I hope its unique component model fits well for the native mobile app development. Is the tool chain very different from React native?

It is. This is mostly a Svelte wrapper around NativeScript so it's really not equivalent

Re: Svelte Native

#23
While I'm a huge Svelte fan, this project hasn't really gotten very much care and attention over the last few years.

Which is honestly fine. React and React Native I think do a much better job of filling the niche of people who want to build native apps with web tech.

That being said, I think with the progress that Safari has made in implementing PWA support, the increased hostility of Apple toward native developers, and browser improvements like WebGPU coming out soon, I really hope that we no longer have to build native apps for like 95% of use cases. The only major hurdle to this is Apple continuing to treat web apps as second class citizens on iOS and only begrudgingly adding APIs to Safari to make good native experiences.

Re: Svelte Native

#24
I have built many mobile apps in the last years. I always used web technologies rendered inside webviews, using tools like capacitorjs.

Since I am very concerned with user experience, I always considered the perceivable UI rendering performance as highly important. For contemporary smartphones I cannot see any benefit in using tools like react native, flutter, nativescript in contrast to rendering inside a webview.

I think UI libraries like ionic are indistinguishable from native UI components. At least, to the best of my knowledge, there is no real user study, which proves the contrary. So why should one use such cross-platform tools and not use svelte directly with a webview?

Re: Svelte Native

#25

I have built many mobile apps in the last years. I always used web technologies rendered inside webviews, using tools like capacitorjs. Since I am very concerned with user experience, I always considered the perceivable UI rendering performance as highly important. For contemporary smartphones I cannot see any benefit in using tools like react native, flutter, nativescript in contrast to rendering inside a webview. I…

Have you experienced slow scrolling issues?

https://github.com/ionic-team/capacitor/issues/4187

Re: Svelte Native

#26

While I'm a huge Svelte fan, this project hasn't really gotten very much care and attention over the last few years. Which is honestly fine. React and React Native I think do a much better job of filling the niche of people who want to build native apps with web tech. That being said, I think with the progress that Safari has made in implementing PWA support, the increased hostility of Apple toward native developers,…

> The only major hurdle to this is Apple continuing to treat web apps as second class citizens on iOS

If you add a site to iOS' homescreen it automatically becomes a PWA. The best example I found of a site fully leveraging this feature is Cryptee[0]. They talk about the PWA thing here: https://crypt.ee/download

[0] https://crypt.ee/

Re: Svelte Native

#27

I have built many mobile apps in the last years. I always used web technologies rendered inside webviews, using tools like capacitorjs. Since I am very concerned with user experience, I always considered the perceivable UI rendering performance as highly important. For contemporary smartphones I cannot see any benefit in using tools like react native, flutter, nativescript in contrast to rendering inside a webview. I…

I very much doubt Ionic is visually indistinguishable from native UI components, but I'd love to try if you have a good demo link.

My guess is it crosses a "good-enough" threshold for usability, and it feels objective, ex. maybe scroll performance is the same.

I strongly believe users notice things feeling "off" in a way that's either subconcious or hard to communicate, and that's why it matters.

The reason why I use Flutter instead of JS is for a number of reasons beyond perf / native controls. The shortest version is iOS / Safari makes web apps extremely obviously a worse version of a native app.

But I'm picky.

I just upgraded macOS and got a "you must accept new T&C" dialog. Accidentally scrolled on it vertically. It did the rubberband effect showing a white background, and I said to myself: "lo, how the mighty Apple has fallen!"

Re: Svelte Native

#28

While I'm a huge Svelte fan, this project hasn't really gotten very much care and attention over the last few years. Which is honestly fine. React and React Native I think do a much better job of filling the niche of people who want to build native apps with web tech. That being said, I think with the progress that Safari has made in implementing PWA support, the increased hostility of Apple toward native developers,…

We've been working with Capacitor recently which is the current iteration of webview-to-native. Basically you just build a website and run it through a compile step to output iOS and Android. The ergonomics of the build process and integration with native features is definitely a bit lumpy, but we've been very successful at building an all-in-one codebase that will power web, ios and android with minimal drift.

Re: Svelte Native

#29
post #16

My company tried using this a few years ago to build a cross platform app (and hopefully share a lot of code with our svelte web interface). We made a lot of progress in 3-4 months of trying, but we ended up running into too many odd bugs and edge cases that were difficult to debug. We eventually switched to Flutter for the mobile codebase. No doubt this and nativescript have improved since then, but from my early im…

This is the story I’ve heard about almost every react native project. Get to proof of concept 10x faster. Spend 10x more time in the weeds on weird bugs.

Also the old Cordova equivalent and Kivy. Take mobile development and try to shoehorn a browser-based solution (they don't want) into it. Now you've got two problems and not enough expertise available to help.

Re: Svelte Native

#30

My company tried using this a few years ago to build a cross platform app (and hopefully share a lot of code with our svelte web interface). We made a lot of progress in 3-4 months of trying, but we ended up running into too many odd bugs and edge cases that were difficult to debug. We eventually switched to Flutter for the mobile codebase. No doubt this and nativescript have improved since then, but from my early im…

How has Flutter compared in your experience?
Post reply on HN