TNSFancyAlert.showSuccess(
"Success!",
"Fancy alerts are nice.",
"Yes they are!",
)
.then(() => {
console.log("success")
}).catch(err => {
console.log(err)
})
Run Code Online (Sandbox Code Playgroud)
错误响应是:[TypeError:cn.refactor.lib.colordialog.PromptDialog不是构造函数]
来自:https : //github.com/NathanWalker/nativescript-fancyalert
我做错什么了吗?