NativeScript
NativeScript is a framework for building native iOS and Android apps using JavaScript and CSS. NativeScript renders UIs with the native platform’s rendering engine, no WebViews, resulting in native-like performance and UX.
NativeScript provides a best-of-both-worlds development experience. Our cross-platform JavaScript modules give you the convenience of writing iOS and Android apps from a single JavaScript codebase, while our runtimes give you the power of accessing native APIs, SDKs, and frameworks when you need them—all without needing to open Xcode or Android Studio. NativeScript was created and is supported by Telerik.
You can read more about why NativeScript may be a good fit for your next project, or check out the links below to get started.
Getting Started and Installation
Our Getting Started Guide is a hands-on tutorial that walks you through installing NativeScript and building a real iOS and Android application.
Quick Links
- NativeScript home page
- NativeScript documentation
- NativeScript blog
- @NativeScript on Twitter
- NativeScript community Slack channel
- NativeScript community forum
- NativeScript on Stack Overflow
Repositories
The NativeScript framework consists of a number of components, all of which are open source and on GitHub. Here are the major ones:
- Cross-platform modules
- This repo contains the NativeScript cross-platform modules, which abstract iOS and Android APIs into JavaScript APIs—e.g.
camera.takePicture()
. The modules are written in TypeScript.
- This repo contains the NativeScript cross-platform modules, which abstract iOS and Android APIs into JavaScript APIs—e.g.
- iOS runtime
- This repo contains the NativeScript iOS runtime—the code that hosts NativeScript iOS apps, and allows JavaScript code to be executed on iOS devices. The iOS runtime is written in a fun mix of C++, Objective-C, and more.
- Android runtime
- This repo contains the NativeScript Android—the code that hosts NativeScript Android apps, and allows JavaScript code to be executed on Android devices. The Android runtime is written in a fun mix of C++ and Java.
- CLI
- This repo contains the NativeScript command-line interface, which lets you create, build, and run apps using the NativeScript framework. The CLI is written in TypeScript.
- Docs
- This repo contains the NativeScript framework documentation, which is available at http://docs.nativescript.org/. The docs are written in Markdown.
In addition to the code that makes up the NativeScript framework itself, we also provide a number of open-source sample apps that you can reference while building your NativeScript application.
Contributing
We love PRs, and accept them for all of our repositories—even docs! Please follow our contribution guide if you want to become part of the project.
Angular 2
We are working together with the Google Angular JS team to make Angular 2.0 work on top of NativeScript. To follow our progress, check out the following links:
- NativeScript Angular 2.0 plugin - This plugin is the only thing you need to install in order to enable Angular 2.0 in NativeScript.
- TodoMVC sample - The classic TodoMVC sample implemented with NativeScript and Angular 2.0.