Skip to content
This repository was archived by the owner on Dec 19, 2021. It is now read-only.
This repository was archived by the owner on Dec 19, 2021. It is now read-only.

JS: Error creating Loading Indicator Pop Over: Cannot read property 'getResources' of undefined #52

@namikarif

Description

@namikarif

Which platform(s) does your issue occur on?

-Android

  • emulator

Please, provide the following version numbers that your issue occurs with:

  • CLI: 8.0.2
  • Cross-platform modules: 8.0.8
  • Plugin(s): ^4.1.0

Please, tell us how to recreate the issue in as much detail as possible.

export class LoadingService {
indicator: LoadingIndicator;

constructor() {
    this.indicator = new LoadingIndicator();
}

showLoading(text: string, details: string = '') {
    const options: OptionsCommon = {
        message: text,
        details: details,
        progress: 0.65,
        margin: 10,
        dimBackground: true,
        color: '#4B9ED6',
        backgroundColor: 'yellow',
        userInteractionEnabled: false,
        hideBezel: true,
        mode: Mode.AnnularDeterminate,
        android: {
            cancelable: true,
            cancelListener: function (dialog) {
                console.log('Loading cancelled');
            },
        },
        ios: {
            square: false,
        },
    };

    this.indicator.show(options);

}

hide(): void {
    this.indicator.hide();
}

}

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