歡迎您光臨本站 註冊首頁

NativeScript 6.2 發布,黑暗模式和新的 npm 包

←手機掃碼閱讀     admin @ 2019-11-11 , reply:0

NativeScript 6.2 已經發布,主要內容如下:

Dark Mode

該版本引入黑暗模式:

  • 更新主題,最新版本支持黑暗模式的開箱即用
  • 擁有自己實現黑暗模式所需的擴展點
  • 可以選擇從操作系統繼承暗模式設置,也可以在應用程序中實現自定義控制項
  • 大多數 「Pro」 NativeScript 組件,如日曆、圖表和 DataFrom,已經提供了黑暗模式外觀

Scoped NPM Packages

該版本在單個 NPM 範圍內提供所有 NativeScript NPM 包,包括新的:

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

Kotlin 的擴展函數/屬性支持 

現在能夠在 NativeScript 中調用用 Kotlin 寫成的 ArrayList 擴展函數:


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

然後,在 NativeScript 應用程序中,調用此函數:


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

詳細內容請見發布說明:

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


[admin ]

來源:OsChina
連結:https://www.oschina.net/news/111215/nativescript-6-2-released
NativeScript 6.2 發布,黑暗模式和新的 npm 包已經有156次圍觀

http://coctec.com/news/all/show-post-219182.html