What is Native Script?

Asked

Viewed 3,711 times

6

I recently read about Native Script, wanted to know a little more about and how it works.

What is the Native Script?

What are the advantages?

How it works?

Is it worth using?

While your learning curve?

1 answer

11


It is yet another attempt to offer a tool that allows you to develop cross-platform applications especially focused on mobile devices (iOS, Android and Windows).

It is Javascript-based and gives you access to the native Apis of each platform in a uniform way. This is an advantage compared to web development that has several restrictions on access to device resources, in addition to being very expensive web, eventually even damaging usability.

It does not guarantee that 100% of the application will be cross-platform, but most will be written only once leaving a marginal portion that must be written more specifically for a platform. I believe it is an interesting approach, I just don’t know how much they managed to do satisfactorily.

It is important that native applications are generated, not a web application. Javascript is just the writing language. it is not the whole infrastructure. This differs from the Phonegap which is used to develop multiplatform, but primarily uses the web to achieve the goal.

It actually resembles more the Xamarin which also provides native access to each platform’s Apis when C# or other languages . NET as a language. Apparently there’s an advantage to not needing Wrappers then any novelty of the platform is available immediately to the Nativescript. Although I doubt it works that well, it sounds like a bit of marketing. They also promise to have a unique basis for UI. Until today I have not seen a solution that works well like this. This is the first?

The learning curve seems to be small if already domina well Javascript and understands the mobile development model. But you’ll still need to learn the new Apis. If it’s worth it only the person can say, I don’t even know for me if it’s worth :P

  • thanks for the answer, I think I’ll go into that :D

  • It took me years to feel comfortable to develop Mobile, and when I met Nativescript I found the solution, it has been a very good experience.

  • The Xamarin even understand how it works, because it runs on a VM (in the case android for example, is a vm mono) as I read in the documentation. But how does this happen to NS? Does it generate java code and compile? It has a vm V8 that calls the native api?

  • 1

    I can’t tell you about it. I think Xamarin doesn’t run on VM, it’s direct binary native code, it just communicates with the Java VM. Just do not say because I may be confusing as Xamarin for iOS that runs without VM for sure.

  • Um, looking further, I found an article explaining my question http://developer.telerik.com/featured/nativescript-works/.

  • 1

    @Juniorc-Sharp-Asp.Net thought this was it, but I wasn’t sure.

  • A and about Xamarin, from what I understand here, it uses vm yes, both on android and Ios: https://developer.xamarin.com/guides/cross-platform/application_fundamentals/building_cross_platform_applications/part_1_-_understanding_the_xamarin_mobile_platform/

  • @Juniorc-Sharp-Asp.Net there is written that on iOS is the same native.

  • So I did, but I had read on some other blog that the code on Ios was also running on a vm, I just can’t remember which one. But it wasn’t clear how it turns c# code into native code for Ios. You know?

  • Compiler generates binary code, no secret.

Show 6 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.