TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How should I rewrite my UI to be cross-platform (mobile and desktop)?

1 点作者 willprice892 个月前
I&#x27;m a solo developer making a VPN app for iOS, Mac, Android, and Windows (https:&#x2F;&#x2F;wallpunch.net&#x2F;download&#x2F;). Currently all four versions are written using native code, but every time I want to change something on the UI a large amount of work is required. Since I am planning some major UI changes, I figured first rewriting the UI code to be cross-platform would end up saving me time. It would also make it easier to eventually create a Linux version too. Based on the research I&#x27;ve done so far React Native and Flutter seem like the two top options. However I&#x27;m not sure which is best for my specific use case:<p>1. The app UI is very simple. Buttons, lists, input boxes. That&#x27;s about it. Frontend performance is not particularly important.<p>2. As a VPN app, a large chunk of custom native code is required for each platform to link up with the native VPN-related APIs, so this must be easily integrated with the UI framework.<p>3. I would like to limit the amount of added dependencies and links in my build chain as much as possible.<p>4. Once rewritten, I hope it will be easy to find freelancers to implement minor UI changes in the future.<p>Any suggestions?

3 条评论

miserve2 个月前
I think a good alternative is Tauri 2.0. With this new version, you can even distribute on Android and iOS. It’s similar to Electron. It uses Rust (or JS) for APIs and JavaScript for the frontend.
评论 #43395527 未加载
pestatije2 个月前
&gt; Buttons, lists, input boxes<p>Make it a web page and be done
评论 #43393276 未加载
PaulHoule2 个月前
React Native.