Mobile

Nativescript 4.1 has been released

2 min read

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.

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.

Read Next

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

Sugandha Lahoti

Content Marketing Editor at Packt Hub. I blog about new and upcoming tech trends ranging from Data science, Web development, Programming, Cloud & Networking, IoT, Security and Game development.

Share
Published by
Sugandha Lahoti

Recent Posts

Top life hacks for prepping for your IT certification exam

I remember deciding to pursue my first IT certification, the CompTIA A+. I had signed…

3 years ago

Learn Transformers for Natural Language Processing with Denis Rothman

Key takeaways The transformer architecture has proved to be revolutionary in outperforming the classical RNN…

3 years ago

Learning Essential Linux Commands for Navigating the Shell Effectively

Once we learn how to deploy an Ubuntu server, how to manage users, and how…

3 years ago

Clean Coding in Python with Mariano Anaya

Key-takeaways:   Clean code isn’t just a nice thing to have or a luxury in software projects; it's a necessity. If we…

3 years ago

Exploring Forms in Angular – types, benefits and differences   

While developing a web application, or setting dynamic pages and meta tags we need to deal with…

3 years ago

Gain Practical Expertise with the Latest Edition of Software Architecture with C# 9 and .NET 5

Software architecture is one of the most discussed topics in the software industry today, and…

3 years ago