Cross Platform Mobile App Development - How Nativescript Works
Cross Platform Mobile App Development - How Nativescript Works
Technical Overview
How NativeScript Works Runtimes
Modules The NativeScript technology can be presented as built upon several Core Modules
Application Architecture major parts - Runtimes, Core Modules, CLI, Plugins. Consider the
NativeScript CLI
following diagram:
Application Lifecycle
NativeScript Plugins
Navigation
Nested Navigation
Not !nding the help you need?
Data Binding
Events
Ask the community
Using Plugins
Accessing Native APIs
Through JavaScript ! Improve this article
Metadata
Memory Management
Multithreading Model
Property System
Utils
CommonJS Modules In
NativeScript Apps
Project Structure
Error Handling
Runtimes
Android Runtime
The runtimes enable you to call APIs in the Android and iOS
IOS Runtime frameworks using JavaScript code. To do that they use JavaScript Virtual
Machines - Google’s V8 for Android and WebKit’s JavaScriptCore
USER INTERFACE implementation distributed with iOS 7.0+. Find more information in
Android Runtime Overview and iOS Runtime Overview.
TOOLING
PLUGINS DEVELOPMENT
Core Modules
RELEASES
The Core Modules are there to provide the abstractions needed to
APP TEMPLATES access the underlying native platforms. Take the Gestures module for
example. It de!nes a common JS API that translates application
PERFORMANCE OPTIMIZATIONS TypeScript/JavaScript code into native gestures APIs calls (thanks to the
Runtimes).
FRAMEWORK MODULES
Another thing the Core Modules provide is a basic XML-based way for
GUIDES de!ning UI, data-binding and navigation. Along with it, Angular and
Vue.js can be used as Application Framework technologies. Read more
GET SUPPORT in the Modules documentation.
TROUBLESHOOTING
NativeScript CLI
It is the command-line interface that lets you create, build, and run
https://docs.nativescript.org/core-concepts/technical-overview Page 1 of 2
Technical Overview - NativeScript Docs 23/03/2021, 12:26 PM
apps using NativeScript. The CLI runs on Windows, macOS or Linux, and
you can !nd more information in the NativeScript CLI repo.
NativeScript Plugins
The NativeScript plugins are building blocks that encapsulate some
functionality and help developers build apps faster (just like the
NativeScript Core Modules, which is a plugin). Most are community-
built, written in TypeScript/JavaScript. Some can include native libraries,
which are called from the TS/JS code thanks to the Runtimes. You can
!nd more information in the Plugins documentation.
If you see an area for improvement or have an idea for a new feature, we'd love to have your help! Contribute
Blog Community
NativeScript is licensed under the Apache 2.0 license. © 2021 All Rights Reserved.
https://docs.nativescript.org/core-concepts/technical-overview Page 2 of 2