This is not for native objects but for JS ones. So I have the following:
class Base {
public static test = [1, 2, 3];
}
class Child extends Base {}
console.log(Child.test);
From what I see this is because the TS extend function here: https://github.com/NativeScript/ios-runtime/blob/master/src/NativeScript/__extends.js#L4 is not updated to the new one which also copies static properties:
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Android runtime related issue: NativeScript/android#783