Differences between Native Script and react native and ionic framework

Mahesh K picture Mahesh K · Sep 15, 2016 · Viewed 10k times · Source

Both Native Script and ionic framework are used for build IOS and Android apps with web view & without web views respectively.

I have a confusion between the concept of web view and without web view in above technologies.

What are the key difference between Native Script and ionic framework. Which one gives best performance ?

Can any one explain this or provide some related stuff.

(Please correct me if my understanding is wrong)

Answer

Adam picture Adam · Sep 15, 2016

Nativescript (similar to React-Native) allows you to develop a mobile application in Javascript and XML (or JSX). These frameworks allow you to generate a native mobile application. The UI uses native components from the platform to create a performant slick interface. The Javascript logic code runs inside a JS engine (V8 for Android) bundled with the application. This has the downside of making the app pretty large but you can make cross platform, highly performant mobile apps. The JS code can also access phone functionality through bridging code in the framework.

PhoneGap/Cordova hybrid apps are web apps that get installed onto the phone like a native app but they run inside a WebView. Cordova is used to access the phone hardware functionality. The UI is not native it's just a web page so you can get performance issues (especially on older phones) and graphical stutters if your app is complex.

Ionic2 is probably the best example of a hybrid framework and it goes a long way to overcome the performance issues but it can be a struggle to get good examples/tutorials for it since it is very new and breaks a lot of stuff from Ionic1. Searching for examples brings up a lot of code that no longer works. Hybrid apps will often look similar on all platforms since they do not use native UI components. Some people prefer iPhone apps to look like iPhone apps and not a web app.