Use the Material Design Dialogs in your {N} app
If using @nativescript
:
tns plugin add nativescript-material-dialogs
If using tns-core-modules
tns plugin add [email protected]
Uses the same API as Nativescript Dialogs
Adds one option for alert
:
view
: can be a Nativescript View or a path to to XML component. The custom view will be added to the dialog. Possibilities become endless
import { login, alert, prompt } from "nativescript-material-dialogs";
alert("Your message").then(()=> {
console.log("Dialog closed!");
});