请问HN:关于Webview与React Native在移动应用中的选择,大家有什么看法?
我是一名独立的网页开发者,正在开发一个简单的多人卡牌游戏网站。我的技术栈包括 Next.js 前端和 Node.js 后端。我使用 socket.io 来处理多人互动。
正如标题所暗示的,我想为这个网站制作一个移动应用。起初我考虑使用 React Native,但后来通过 Puzzmo 的一篇很棒的博客文章了解到 Webview。Webview 吸引我的是,我可以重用许多现有的组件(尽管我知道从需要导出静态构建的角度来看,Next.js 可能会带来一些挑战),并且能够在网页开发的环境中保持舒适和高效。我也不介意失去那种“原生”移动用户体验的优越性,因为考虑到我独自一人工作,改善开发体验的权衡似乎是值得的。此外,Webview 似乎还有一些很不错的工具可以简化开发过程,例如 Ionic 的 Capacitor。
有没有人对此有任何看法、见解或糟糕的经历?
查看原文
I'm a solo webdev working on a simple multiplayer card game site. My tech stack consists of a Next.js frontend and node.js backend. I use socket.io to handle multiplayer interactions.<p>As the title implies, I want to make a mobile app for the site. I was looking into React Native at first, but then learned about webviews from this great blog post by Puzzmo[0]. Webviews seems appealing because I would be able to reuse many existing components (though I am aware of next.js related challenges from having to export a static build) and be able to stay comfortable and productive™ in a webdev context. I don't mind losing that "native" mobile UX goodness either since the tradeoff of better DX seems worth it given that I'm working on this alone. There also seems to be some neat tooling for webviews to streamline the development process e.g. Capacitor by Ionic[1].<p>Anyone have any opinions/insights/horror stories on all this?<p>[0] https://blog.puzzmo.com/posts/2025/06/01/ios-app-architecture/<p>[1] https://capacitorjs.com/