Jump to content

NativeScript

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Sipacate (talk | contribs) at 23:17, 20 March 2016 (Initial version of the NativeScript page). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)


NativeScript
Original author(s)Telerik AD
Developer(s)Telerikand community
Initial release2014 (2014)
Stable release
1.7 / March 18, 2016; 9 years ago (2016-03-18)
Repository
Written inJavaScript
PlatformCross-platform
LicenseApache_License
Websitewww.nativescript.org

NativeScript is an open-source JavaScript library providing a cross-platform mobile application development where the application code interacts directly with native platform APIs and controls. NativeScript applications can be written in JavaScript, TypeScript or Angular.[1] NativeScript applications are styled with a subset of CSS specific to the needs of the NativeScript UI layer.

It is maintained by Telerik and a community of individual developers and corporations.

Notable features

Direct access to native platform APIs and Controls

While application source code is written in JavaScript, TypeScript or Angular, the source code is not compiled or otherwise mutated. The source code as is runs directly on the device. This architectural choice eliminates the need for cross-compiling or transpiling. Additionally, while the application source code is written in languages commonly encountered in a browser, or in a WebView contained mobile application, NativeScript applications run directly on the native device. There is no DOM manipulation or any mandatory browser interaction.[2]

Native API Reflection (A.K.A 0-Day Access)

Another notable feature is the use of reflection to handle native API end points. Rather than require separate binding layers between NativeScript and each mobile platform API, NativeScript uses reflection to gain information and metadata about the native platform APIs. New features added to any native platform API are available immediately.[3] http://sdtimes.com/sd-times-github-project-of-the-week-nativescript/ Another way the reflection feature is used is in working with 3rd party libraries. As JavaScript (or TypeScript/Angular) can talk directly to native code, there is no need to write binding layers in Objective-C, Swift or Java.

References


References