Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon

Nativescript 4.1 has been released

Save for later
  • 2 min read
  • 11 Jun 2018

article-image

Nativescript version 4.1 has been released with multiple performance improvements and major highlights such as support for Angular 6, faster app launch time, new UI scenarios and much more.

Android 6 support


NativeScript 4.1 Angular integration has been updated with support for Angular 6. And since Angular 6 requires webpack 4, developers have to update to nativescript-dev-webpack 0.12.0 as well.

V8 engine now available in v6.6


The V8 Engine is now upgraded to version 6.6. The new engine adds major performance boost, JavaScript language features, code caching after execution, removal of AST numbering, and multiple asynchronous performance improvements.

Faster Android startup time


The upgrade to V8 6.6 and webpack 4, also brings faster app launch time on Android making it on par with iOS. Depending on the device and the specific app, Android app startup time is now between 800ms on high-end devices, to 1.8s on older devices. This is an improvement of almost 50% compared to the startup time in Nativescript v4.0!

Improvements to user interfaces


Nativescript 4.1 adds augmented reality with support for ARKit for iOS by adding the built-in vector type.

Unlock access to the largest independent learning library in Tech for FREE!
Get unlimited access to 7500+ expert-authored eBooks and video courses covering every tech area you can think of.
Renews at R$50/month. Cancel anytime

Multiple iOS Simulators


Nativescript 4.1, can now run applications simultaneously on multiple iOS Simulators, iOS devices, Android emulators, and Android devices. Developers can LiveSync change on iPhone X, iPhone 8, iPad 2, etc. and immediately see how the application looks and behaves on all of them.

Navigation in a Modal View


There are updates to navigation in modal view as well. Before version 4.1, for navigation inside a modal view, you had to remove the implicit wrapper and specify the root element of the modal view. With the new changes, the first element of the modal view becomes its root view and developers can place a page router outlet there, for proper navigation.

LayoutChanged Event


Nativescript 4.1 introduces layoutChanged event that will be fired when the layout bounds of a view changes due to layout processing. The correct view sizes are obtained with getActualSize(). Proper view sizes are especially useful when dealing with size-dependent animations.

The full list of bug updates and other fixes are available in the changelog. You can read more about the release on the Nativescript blog.

NativeScript: What is it, and how to set it up
How to integrate Firebase with NativeScript for cross-platform app development