We encourage you to join us on the NativeScript GitHub page and help us make NativeScript the best it can be.
If you are new to NativeScript I will advise you to read our extensive FAQ page.
Note: If you still do not have access to the bits please request to join the NativeScript Beta group and then drop me an email (firstname.lastname@example.org) to make sure that you will be among the first to have access to the fresh bits.
If you are a .NET developer, we haven’t forgotten you. We have a full TypeScript support with intellisense as part of our integration with Telerik AppBuilder. You can use generics, enums, interfaces, static analysis, compile-time errors and everything an object-oriented language provides.
In terms of performance, during this release we optimized our runtime for iOS a lot and now we can honestly share that you will not notice any difference between NativeScript app and an iOS app written in ObjC. Get into the most critical mood and check out our sample app on the Apple App Store (link or search for NativeScript from your device) to see if you will be able to smell any difference. If you do - drop me an email with details, but I’m warning you, it is not an easy task.
As for Android, in terms of performance, we made a good progress, but there is still a room for improvement. We need to adjust how and when the garbage collection happens, because right now this happens more often than it should. We are several commits away from enabling a true native performance so stay tuned for updates. Check out the current state of the app on the PlayStore (link or search for NativeScript from your device).
One of top priorities we set for the NativeScript framework is to provide you with rich and modern tools for building rich UI application. We are still missing the declarative way of building application UI, but with this release we implemented the fundamentals that will help us achieve this goal in the next release. Stay tuned XML declaration is coming very soon. Here is the list of the cross-platform building blocks that we are shipping today:
Read more about the possible options in our API reference.
Powerful cross-platform layout engine enabling you to easily create the UI you need by combining existing layout panels, or writing your own. In this initial release we implemented vertical and horizontal stack panel and grid panel. These two panels should help you build 90% of the UI you need, but we have also plans to create wrap and canvas panels in a future release. Here is how a simple layout declaration looks.
// Setup a button.
//Setup a message label.
// Setup a stack layout panel
You can read more about the layout in our “Create your first app using NativeScript” sample.
CSS Styling is another big thing we are introducing with this release. This is just the initial version and contains only three properties (background, font size, and font color), but more are coming with the following releases. The styling engine supports extensions, so you can write your own CSS properties and implement them in a custom way. Web developers are going to love this feature. We are not introducing a new format for styling, it's exactly the same format that you are using in a web application. It is just limited to the properties that we support. Here is a quick code snippet to see how it looks like (nothing new or surprising here):
We also implemented several basic UI components which you can use cross-platform:
To achieve the best UI building experience, we plan to introduce markup declaration, binding engine and a full set of rich UI components. Stay tuned to see these things popping out in our future releases.
Another big thing we are introducing with this release is the ability to use third party ObjC libraries. This feature alone enables you to achieve a huge code sharing boost. You can now use existing third party iOS libraries right in your NativeScript application. Tons of third party libraries are already available, so check here or here. Support for third party Android libraries is on its way and will be live with our next release.
Last, but definitely not least is the introduction of CLI for NativeScript. And this is actually the first thing we are releasing as an open source. You are welcome to contribute, star or branch the source code here - https://github.com/NativeScript/nativescript-cli. With the CLI we enable many scenarios, you can use it on Windows, Linux or Mac-based machines. You can create, build and deploy an application using these tools. You can also use your favorite IDE to edit the application code. Just edit the files and using the CLI, build and deploy the application on native emulators or on a real device. To see a small part of the power of CLI, here is how to create, build and run a NativeScript application with a single line of code, thanks to our CLI gurus.
npm i -g nativescript && tns create app1 && cd app1 && tns platform add ios && tns prepare ios && tns run ios
With the open source version of the CLI, you need to install the native SDKs on your working machine. This requires to use a Mac machine if you want to target iOS devices. If you are using the tools inside Telerik AppBuilder, you will be able to build iOS apps directly from your Windows machine. Check-out AppBuilder CLI here.
The number of new features we’ve introduced with this release is much bigger than what can be covered in a single blog post. That’s why we are preparing separate blog posts for the other major additions as part of our Insiders program.
What is next for you? If you are a NativeScript Insider you can start building an app right now. If you are not an Insider and want to try the bits now, the key for this is in my pocket, please drop me a line to give you access to the bits at email@example.com.