Ask HN:关于移动应用,Webview 和 React Native 你更倾向于哪个?

1作者: hnroo996 个月前
我是一名独立前端开发者,正在开发一个简单的多人在线卡牌游戏网站。我的技术栈包括 Next.js 前端和 Node.js 后端,使用 socket.io 处理多人互动。<p>正如标题所示,我想为这个网站开发一个移动端应用。起初我考虑使用 React Native,但后来从 Puzzmo 的这篇精彩博文[0]中了解到了 Webview。Webview 看起来很有吸引力,因为我可以重用许多现有的组件(尽管我知道 Next.js 相关的挑战,需要导出静态构建),并且可以在 Web 开发环境中保持舒适和高效™。我也不介意失去“原生”移动端的用户体验,因为考虑到我独自开发这款应用,更好的开发者体验似乎更值得。而且,似乎也有一些很棒的 Webview 工具可以简化开发流程,例如 Ionic 的 Capacitor[1]。<p>大家对这些有什么看法/见解/恐怖故事吗?<p>[0] https://blog.puzzmo.com/posts/2025/06/01/ios-app-architecture/<p>[1] https://capacitorjs.com/
查看原文
I&#x27;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&#x27;t mind losing that &quot;native&quot; mobile UX goodness either since the tradeoff of better DX seems worth it given that I&#x27;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&#x2F;insights&#x2F;horror stories on all this?<p>[0] https:&#x2F;&#x2F;blog.puzzmo.com&#x2F;posts&#x2F;2025&#x2F;06&#x2F;01&#x2F;ios-app-architecture&#x2F;<p>[1] https:&#x2F;&#x2F;capacitorjs.com&#x2F;