DEV Community

caelinsutch
caelinsutch

Posted on

React Native vs Flutter vs Ionic vs NativeScript

I come from a web app development background, think Angular and React, but recently, I’ve been tasked with creating a mobile app for a startup. Initially, I looked around at a few different options, you can code a native app in Swift (iOS) or Objective C, Kotlin, or Java (Android), but that requires development and upkeep of two separate apps. However, there’s also quite a lot of new mobile app frameworks that promise low-overhead cross-platform app development.

Lets look at a few of these options:

Flutter

Flutter

Flutter is both a SDK (software development kit) and a framework for Dart — a programming language developed by Google. Flutter itself is also developed by a Google team and now open sourced for crowd development.

Flutter is written in a language called Dart, which is compiled to native code that runs on the target device. Flutter is build around “widgets”, or interfaces. Flutter shipos with a bunch of pre-configured widgets for Material and Cupertino themes and you can of course build your own widgets.

The SDK portion of the technology is well developed, such as IDE extensions and hot reloading (live updating on an emulator or real device).

React Native

React Native is a technology/ framework developed by Facebook.

It uses JavaScript and the React library to allow you to build beautiful user interfaces composed of React components.

If you come from a React background, unlike apps built for browser, you can only use a set of pre-built components from React that will be compiled to native code.

You’re still able to use packages like Redux and knowing JavaScript and React of course allows you to quickly get started with React Native, too.

NativeScript

NativeScript also uses JavaScript to build native mobile apps. It comes in different flavors — pure JavaScript/ TypeScript, with Angular and with Vue.js.

It gives you the option of working with different frameworks as you can see — the different options are developed independently from each other though. So you might have an easier time or more built-in components with option A than you have with B. This gives the developer flexibility to use what they’re most experienced with.

Like Flutter and React Native, NativeScript also ships you a bunch of pre-built components which you use to compose user interfaces. It does not work with HTML but with its own components (like React Native).

Ionic

With Ionic, you still create a real native app but you do this by creating a web app (with HTML, JS and CSS) which will be wrapped by a real native app that hosts a webview (basically a hidden browser).

Since you build a web page in the end, Ionic is pretty easy to get started with for web developers.

Starting with Ionic 4, Ionic is basically a huge suite of components you can use (buttons, cards etc) with any frontend framework (or none at all).

Ionic also provides a lot of tooling that makes the development of mobile apps easier (e.g. a development server for running your app on an emulator/ real device with live-updating) and it also bundles the app into shippable packages. Additionally, the Ionic team is involved in the Capacitor project which offers a lot of JavaScript packages you can add to any (!) web project to tap into native device features like the camera.

That being said, since Ionic is hosted in a webview container, there is a performance impact.

Which framework is best?

First of all, you have to decide whether you want to stick to the native languages (Swift, ObjectiveC, Java) and accept the disadvantage of learning two things and writing two apps. This is a lot of work and mastering two languages and platforms is way harder than mastering one, but there are some advantages in low level API access.

If you don’t want to use the native languages, you have to decide whether you want a wrapped-app solution as Ionic offers it. Whilst having the performance disadvantage (which might not matter that much as discussed above), you will get a super-fast development experience. You can use your web development know-how and build two apps with one tech stack in little time.

But if performance is super-important to you — or you need to access a lot of (advanced) native device features — you might want to take a look at React Native, Flutter r NativeScript.

Conclusion

I ended up choosing Flutter to develop with because of its speed, developer experience (it’s a joy to write widgets, everything is easily customizable), and active community. Either way, these are all excellent options for development!

Top comments (8)

Collapse
 
mattnot profile image
Matteo Notaro

The only problem of Flutter is verbosity, for every single component you have to write like 2 classes

Collapse
 
caelinsutch profile image
caelinsutch

Not necessarily, Stateless components only require one class, and there is actually this package that provides shorthand for stateless and stateful widgets, very much like React. I find that the verbosity in components however makes it far easier to read and write than something like HTML, I can normally crank out a screen in an hour or so compared to HTML/CSS syntax.

Collapse
 
imakashrana profile image
Akash Chauhan

Flutter is a new framework for developing mobile apps that promises to be faster and more efficient than React Native.First, Flutter offers more features and customization options.
continue reading...

Collapse
 
103221 profile image
103221 • Edited

Thank you for your comparison, it is quite thorough indeed! Speaking of which, I've seen a nice table for Flutter vs Ionic that may be useful for someone who's hesitating in their choice. Source: surf.dev/flutter-vs-ionic-choosing...
dev-to-uploads.s3.amazonaws.com/up...

Collapse
 
dotnetdreamer profile image
Idrees Khan

NativeScript unique feature is calling native API in JS! That's alot...

Collapse
 
shane profile image
Shane McGowan

Do Ionic apps have any issues with getting published on the iOS app store? I have heard Apple doesn't like apps that are just wrappers around websites.

Collapse
 
wobsoriano profile image
Robert

Ionic has a higher chance of getting disapproved over other techs. This is one of the messages you'll receive

forum.ionicframework.com/t/app-got...

Collapse
 
dotnetdreamer profile image
Idrees Khan

This isn't the case, for the past 6 years I am publishing an app every 3 months an average for clients. My app has never been rejected as long as it was not violating Apple's guidelines.