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.
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.
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.
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!
Nativescript 4.1 adds augmented reality with support for ARKit for iOS by adding the built-in vector type.
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.
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.
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