5 ms·
What if you have a web game (canvas) you just want to wrap as an app? Obviously I can't use React Native for that.
by Kiro 9y ago
What if you have a web game (canvas) you just want to wrap as an app? Obviously I can't use React Native for that.
- fredsted 9y agoIf you just want a webview-as-an-app, then why not do it natively?
- ntaso 9y agoNot your parent poster, but in a similar boat: Because I've written the game in JavaScript and it renders to Canvas. It also works in the browser. To go native, I'd have to rewrite everything from scratch. And then I have to maintain 3 platforms. Maybe Unity is the solution, but right now, it's not written with Unity.
- LeoNatan25 9y agoIf it's a web app, keep it on the web. Why does it have to have a native wrapper?
- ntaso 9y agoWhy? App Store exposure, client-side demand for an app, offline-first – and quite frankly, because it's written for desktops in mind and the mobile experience just sucks. Wrapping it in Cordova at least gives some control over the experience, such as: You can't accidentally swipe back on the browser, full screen, no address bar etc. Check out the Twitter PWA (https://mobile.twitter.com https://mobile.twitter.com). Accidentally swiping back happens to me a couple times per day.
- jordache 9y agoa web app means that you don't need to leverage the native UI controls provided by react Native. In this case, just use whichever platform is easiest and slap a webview on there. I don't even think going full native + webview is even an advantage compared to phonegap + webview