Skip to content

Bug in uicharts onOrientationChange on Android resulting an crash #19

@cjohn001

Description

@cjohn001

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions