nativescript-dialog icon indicating copy to clipboard operation
nativescript-dialog copied to clipboard

ReferenceError: Can't find variable: SDCAlertController

Open AdamDenoon opened this issue 9 years ago • 2 comments

Current version (0.1.0) works on Android.

On iOS, I'm getting ReferenceError: Can't find variable: SDCAlertController

My code:

            var dialog = require("nativescript-dialog");

            var nativeView;
            if(platform.device.os === platform.platformNames.ios){
                nativeView = UIActivityIndicatorView.alloc().initWithActivityIndicatorStyle(UIActivityIndicatorViewStyle.UIActivityIndicatorViewStyleGray);
              nativeView.startAnimating();
            } else if(platform.device.os === platform.platformNames.android){
                nativeView = new android.widget.ProgressBar(application.android.currentContext);
              nativeView.setIndeterminate(true);
            }

            dialog.show({
              title: "Loading...",
              message: "Please wait!",
              cancelButtonText: "Cancel",
              nativeView: nativeView}
            ).then(function(r){ console.log("Result: " + r); },
            function(e){console.log("Error: " + e)});

AdamDenoon avatar Feb 12 '17 04:02 AdamDenoon

I fixed this issue by updating tns/nativescript.

AdamDenoon avatar Feb 13 '17 03:02 AdamDenoon

I have verified this project is no longer maintained by the original author. I have created my own plugin for login screen using this one as an base. I am willing to look into making another version to be more like this one with buttons if there is enough feedback/desire/need

See my plugin here https://github.com/LorenDorez/nativescript-loading-screen

LorenDorez avatar Mar 12 '18 16:03 LorenDorez