NativeScript 6.2 已經發布,主要內容如下:
該版本引入黑暗模式:
該版本在單個 NPM 範圍內提供所有 NativeScript NPM 包,包括新的:
現在能夠在 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
]