by hn_throwaway_99 · 3y ago · 0 comments
1. If you truly need all the advantages of native performance and integration, just go native. Yes, you'll need to "write it twice", but you'll find that it's actually easier to hire top notch iOS or Android devs in the first place (in my experience they tend to be partisans) with high productivity.
2. I think the biggest thing that has changed since React Native first came on the scene is that the browser-based cross-platform toolkits, things like the Capacitor framework (and starting with Progressive Web Apps in the first place), have gotten much better, and browser tech now gives loads of access to underlying devices and sensors (accelerometer, cameras, biometrics, etc.) React Native really came out with the idea of "I've got all these web devs, can I make them productive on native mobile?" I think things like Capacitor and their ilk are a much better option for this issue now.
So in my opinion, if you really need native, use the native frameworks, but if your app doesn't need that and you can do cross-platform, use one of the web-view-based cross-platform frameworks.
You don't think there's a lot of companies in that boat?
I was able to make a react-native app, targeting web first. Took a little under a year.
Took 1 month to get it working and deployed on both app stores to replace the apps our iOS and Android team used to work on natively.
I now maintain web, iOS, and Android, solely, with one codebase, 95% code shared.
We used to have at least two devs on each native platform. That saves about $600k/yr.
(browser-based cross-platform toolkits are a joke, they are not flexible, and are hard to extend)
I would have agreed with you say 5 or more years ago, but completely disagree now. I certainly don't think the better web-view-based frameworks have any more issues than React Native, and on the contrary I've seen React Native usually have more.
A webview-based framework has way too many limitations even to this day for us.
React Native has been able to provide a native-like experience for us with no issues.
If someone would make reasonably priced modules like this for CapacitorJS it'd be a good ecosystem, but instead we've got dying open source libraries, and extortionately priced addons (4 figure+) from the likes of Ionic.
If you try to make something real/production grade in Ionic, it will quickly disappoint.