NativeScript 6.2 release, darkness models and new npm package

NativeScript 6.2 has been released, the following key elements:

Dark Mode

This version introduces dark mode:

  • Update theme, the latest version supports dark mode out of the box
  • It has its own extension point to achieve the desired mode of darkness
  • Can choose to set the operating system inherited from the dark mode, you can also implement custom control in the application
  • Most "Pro" NativeScript components, such as calendars, charts and DataFrom, have provided the appearance of dark mode

Scoped NPM Packages

This version provides all NativeScript NPM NPM range in a single package, including new:

  • @nativescript/core
  • @nativescript/angular
  • @nativescript/theme

Kotlin extension functions / attributes support 

ArrayList is now able to call the extension functions written in NativeScript Kotlin in:

fun ArrayList<String>.bubbleSort() { // Implementation of a bubble sort }

Then, in NativeScript application, call this function:

let arrayList = new java.util.ArrayList();
arrayList.bubbleSort();

Please see the release notes:

https://www.nativescript.org/blog/nativescript-6.2-the-darkest-release-ever

Guess you like

Origin www.oschina.net/news/111215/nativescript-6-2-released