Live data from Hacker News

Valdi – A cross-platform UI framework that delivers native performance

github.com

191–200 of 230 posts

Re: Valdi – A cross-platform UI framework that delivers native performance

#191

Earlier quoted context omitted.

You are comparing web view apps to web view apps. “React Native” has muddied the waters here with intentional misuse of terminology. With React Native you still write a web view app - it just ahead of time compiles to run without the browser view on device. But it doesn’t use any native UI components, which is what “native app” used to mean.

I may have read your comment backwards but it seems rather wrong: react native DOES use native UI components, thats why it has “native” in its name. It’s also not compiled ahead of time per se, you still execute JS in the app (not in webview, yes) , but its mapped to native components

Thank you, it appears I was misinformed and/or conflating my knowledge of how flutter works. Mae culpa.

It does seem that many RN apps do React (not native) components when they need to do something custom, which may explain my sub-par, non-native experience with the RN apps I have used.

Re: Valdi – A cross-platform UI framework that delivers native performance

#192
post #152

I've worked and researched heavily in this field. If you want to write one codebase that hits all platforms with _actual native performance_ your only option at the moment is RN/Expo.

Flutter performs better than RN in my experience (mobile)

And how up-to-date is that experience? Have you deployed Flutter to web?

Re: Valdi – A cross-platform UI framework that delivers native performance

#193

Working at a company that uses react-native I wish nothing more than for the end of app stores and differing platform languages. We're heavily considering just having a website next year with a mobile app using webview, and then native code for the native notifications, GPS and healthkit / health connect. I feel like AI is changing the equation, its nearly better to write your business UI 3 times one for each platfor…

I did this and never looked back. It’s called a “WebView app” and you can get a really good experience on all platforms using them. Just: - don’t make any crazy decisions on your fundamental UI components, like breadcrumbs, select dropdowns, etc - add a few platform-specific specialisations to those same components, to make them feel a bit more familiar, such as button styling, or using a self-simplifying back-stack…

How is a WebView app better than a webapp?

Re: Valdi – A cross-platform UI framework that delivers native performance

#194
Native performance doesn't earn that much user goodwill without native layout and behavior. You can't make a single design for many platforms and please everyone who chose each platform for what it is. Unless perhaps you are Snap and having a _unique_ UI is part of the appeal for your young-leaning audience.

Re: Valdi – A cross-platform UI framework that delivers native performance

#195

Earlier quoted context omitted.

I may have read your comment backwards but it seems rather wrong: react native DOES use native UI components, thats why it has “native” in its name. It’s also not compiled ahead of time per se, you still execute JS in the app (not in webview, yes) , but its mapped to native components

Thank you, it appears I was misinformed and/or conflating my knowledge of how flutter works. Mae culpa. It does seem that many RN apps do React (not native) components when they need to do something custom, which may explain my sub-par, non-native experience with the RN apps I have used.

Even something “custom” is still a native component. The JSX you write eventually creates native views. Whether or not those views and components match the style and behavior of stock iOS or Android is a different story, and whether or not there are performance bottlenecks due to React Native’s bridge (now in theory no longer an issue because of a big architecture rewrite called Fabric) is another.

Re: Valdi – A cross-platform UI framework that delivers native performance

#196

Earlier quoted context omitted.

Works until you need complex native code for things like automatic image capture assisted by a bounding model.

There is no reason you can't do that via web. Image capture in a canvas gives you access to the raw image pixmap data.

Trust me, native camera access is extremely important if you need to directly control focus (for example). We have web and mobile apps that scan ID images and our ability to capture high quality images on mobile native devices is 5x better.

AVFoundation on iOS especially.

Re: Valdi – A cross-platform UI framework that delivers native performance

#197

Earlier quoted context omitted.

There is no reason you can't do that via web. Image capture in a canvas gives you access to the raw image pixmap data.

Trust me, native camera access is extremely important if you need to directly control focus (for example). We have web and mobile apps that scan ID images and our ability to capture high quality images on mobile native devices is 5x better. AVFoundation on iOS especially.

You can still have native views that appear over the WebView for certain tasks. I think you can also provide your own rendering context for elements, so you could roll your own element for showing the current camera view. Either way, you can still have full native camera control without having a 100% native app.

Re: Valdi – A cross-platform UI framework that delivers native performance

#198
post #50

Earlier quoted context omitted.

I did this and never looked back. It’s called a “WebView app” and you can get a really good experience on all platforms using them. Just: - don’t make any crazy decisions on your fundamental UI components, like breadcrumbs, select dropdowns, etc - add a few platform-specific specialisations to those same components, to make them feel a bit more familiar, such as button styling, or using a self-simplifying back-stack…

Do you use some framework for "WebView app" ? Like Tauri, etc ? Or is everything coded from scratch ?

I just rolled my own. I always find frameworks bring too many “weird errors” that waste my time trying to figure them out. Also, they’re just another thing that needs upgrading eventually, and they love to COMPLETELY change their APIs between each major version. (“FrungisFactory is deprecated! Try the new async-fibre-layout BloopisGrid now before we completely delete that thing that worked perfectly for you!”)

The platforms provide more than enough capability to build basic WebView apps with minimal effort, and usually the DX is good.

Re: Valdi – A cross-platform UI framework that delivers native performance

#199

Earlier quoted context omitted.

I did this and never looked back. It’s called a “WebView app” and you can get a really good experience on all platforms using them. Just: - don’t make any crazy decisions on your fundamental UI components, like breadcrumbs, select dropdowns, etc - add a few platform-specific specialisations to those same components, to make them feel a bit more familiar, such as button styling, or using a self-simplifying back-stack…

Isn't there a high chance your app is going to be rejected from app stores because you use a web view? You can change your whole app completely upon approval. Or you ship your HTML/JS and not just embed a URL?

Not a problem if you’re deploying using MDM.

Re: Valdi – A cross-platform UI framework that delivers native performance

#200
post #193

Earlier quoted context omitted.

I did this and never looked back. It’s called a “WebView app” and you can get a really good experience on all platforms using them. Just: - don’t make any crazy decisions on your fundamental UI components, like breadcrumbs, select dropdowns, etc - add a few platform-specific specialisations to those same components, to make them feel a bit more familiar, such as button styling, or using a self-simplifying back-stack…

How is a WebView app better than a webapp?

Native escape hatch, for when you need native capability. For example, my app uses the Zebra DataWedge API on Zebra Android devices.

Native experience for users, where the app appears in their app drawer/library. The app doesn’t disappear randomly like shortcuts do on iOS (maybe this is fixed now?).

Better DX for certain features, like notifications, storage, control of caching, local network device access, etc.

Post reply on HN