Depending on your needs, using something like Turbolinks [1] may be a great fit. There are iOS and Android libraries that can make your web app talk to your native app so it can do things like trigger screen transitions, populate native menu or tab controls, etc. We're using a similar idea at my company and so far it's been very successful for us. [1]: https://github.com/turbolinks/turbolinks/#readme
Ask HN: How are you building cross-platform (mobile and browser) apps?
21–30 of 84 posts
Re: Ask HN: How are you building cross-platform (mobile and browser) apps?
#22Writing a graphql endpoint emitting a data class. Then have react directly cast to that same data class. With proper type safety is great.
There are bugs but they feel like fringe cases. I spent half a day cleaning up my bindings to react material ui. An hour or two fighting serializaiton bugs. Those are the biggest time sinks that come to mind. It's still marked as experimental but it's something to keep an eye on.
Re: Ask HN: How are you building cross-platform (mobile and browser) apps?
#23A few years ago, I worked on a project in Xamarin with some success. The iteration cycle with React Native is far faster, though.
[1] https://blog.google/products/google-play/winners-2018-google...
Re: Ask HN: How are you building cross-platform (mobile and browser) apps?
#24- React Native Web and React Native (iOS/Android) are handled in one go
- Windows Support
- Stripped down so nothing from within will work on iOS but not Android, for example, as is the case with React Native...
- Lots of components from Material UI (just launched v.1) can work right on top without too much of a hitch
Caveat: we're just getting started, so I don't want to oversell this. But faced with a similar problem, this route seemed optimal at this time.
Re: Ask HN: How are you building cross-platform (mobile and browser) apps?
#25Consider taking a look at the Visual Studio tools, which have really matured over the last few years: https://www.visualstudio.com/vs/features/modern-web-tooling/ Specifically, tools for Apache Cordova: https://www.visualstudio.com/vs/features/cordova/ (disclaimer: I haven't used them, but I've heard very positive feedback)
2) If you are a non-MS person, make sure you don’t miss out on the greatness of Visual Studio Code by dismissing it as yet another Windows centric product. VS Code is world class performant, has a great plugin arch/ecosystem, and somehow combines a hardcore developer first mindset with carefully thought out UX at the same time.
Also to be clear for those not much in the MS world, the “Visual Studio“ product line you’ve heard of for decades is not the same thing. It’s confusing naming but Visual Studio Code is relatively new and very different.
Re: Ask HN: How are you building cross-platform (mobile and browser) apps?
#26Re: Ask HN: How are you building cross-platform (mobile and browser) apps?
#27If web app is not necessary you also have flutter.
Re: Ask HN: How are you building cross-platform (mobile and browser) apps?
#28That being said React Native has stability and performance issues that are tricky and can hold up your app for a non-trivial amount of time. Also staying on top of updates requires diligence and can be a pain. But if you're looking for the quickest path to market I would say look no further.
Re: Ask HN: How are you building cross-platform (mobile and browser) apps?
#29You should consider your target audience and your own resources. For consumer facing apps, I'm not sure an hybrid (cordova / ionic / webview shell) approach is really up to par, as the UX is really challenging to make right and performance will be lacking. That said, a native approach requires twice the codebase and twice the resources (man hours) roughly, so the challenge becomes maintaining feature parity and team…
Re: Ask HN: How are you building cross-platform (mobile and browser) apps?
#30It's pretty hard to beat the productivity of one codebase for every platform with a powerful type system catching errors across every part of system.