Replace
const w = this.nativeView.owner.get();
with
const w = this.nativeView?.owner.get();
onOrientationChange() {
setTimeout(() => {
const w = this.nativeView?.owner.get();
if (w) {
// TODO: redraw the chart here to handle orientation change
}
});
}
|
const w = (<any>this).nativeView.owner.get(); |