NativeScript

Austin vollman
3 min readFeb 21, 2021

If you want to build a mobile app for IOS or Andriod, one of the first things you should do is look into NativeScript.

What is NativeScript?

NativeScript is an open-source framework to build apps on iOS and Android phones, it makes building apps for these platforms a lot easier. according to Wikipedia, NativeScript was first released in March of 2015 by the company Progress.

Benefits of NativeScript

  • Excellent website and documentation: the NativeScript website is extremely straightforward with plenty of helpful documentation and tutorial to help you get started building your app anyway you want
  • NativeScript playground: the website has a playground section where a user can experiment with nativescript, and then is provided a QR code. When the user downloads the nativescript playground app and scans the QR code they will be brought to a website built with the code they wrote.
  • For example if you write the code below and scan the QR code provided with the nativescript app.
  • you will then see this!
  • NativeScript also works flawlessly with Javascript: according to wern ancheta, “NativeScript is composed of a JavaScript virtual machine, a runtime, and a bridge module. The JavaScript virtual machine interprets and executes JavaScript code.”
  • NativeScript works well with Angular also, by just installing the nativescript angular npm package users are able to write their app in Angular and nativescript.
  • NativeScript also works well with Vue.js: if you plan on using Vue and nativescript to write a mobile application, you can simply import and use the nativescript npm package and get right to work. starting a Vue mobile app with nativescript is as simple as the code shown below.

Charateristics of NativeScript

To start an app with nativeScript simply run the code below and this will create the homepage of your app. This will be the first step in creating your app.

NativeScript doesn't have HTML or a DOM so you will need to learn new components in order to be able to build the user interface that you desire.

Handling events in nativescript is very cool because of the different actions that can trigger an event. Things such as tapping and scrolling are normal motions on a phone screen and nativescript makes it easy to make use of these events like this code below.

In conclusion, if you are thinking about developing a mobile app on iOS or Android, you should look to NativeScript to be the framework for your app. This is because of NativeScript’s ease to pick up and understand, backed by their incredible documentation and resources to help users develop the app they envision.

--

--