@nativescript-community/ui-material-dialogs
    TypeScript icon, indicating that this package has built-in type declarations

    5.3.14 • Public • Published

    NativeScript Material Dialogs

    Material Design's Dialogs component for NativeScript.

    npm npm

    Contents

    1. Installation
    2. Changelog
    3. FAQ
    4. Usage

    Installation

    ⚠️ Warning ⚠️

    From NativeScript 5.x using this component will break the NativeScript tab component on iOS (which is bound to be removed). This is needed to allow using the latest native iOS features. If needed you can use either bottomnavigationbar (this one is the best choice, closest to material design) or material-tabs (clone of the NativeScript one, but with a little less features).

    For NativeScript 7.0+

    • tns plugin add @nativescript-community/ui-material-dialogs

    For NativeScript 6.x

    • tns plugin add nativescript-material-dialogs

    If using tns-core-modules

    • tns plugin add nativescript-material-dialogs@2.5.4

    Be sure to run a new build after adding plugins to avoid any issues.

    Changelog

    FAQ

    Usage

    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.

    TS

    import { login, alert, prompt } from "@nativescript-community/ui-material-dialogs";
    
    alert("Your message").then(()=> {
        console.log("Dialog closed!");
    });

    Install

    npm i @nativescript-community/ui-material-dialogs

    DownloadsWeekly Downloads

    69

    Version

    5.3.14

    License

    Apache-2.0

    Unpacked Size

    147 kB

    Total Files

    18

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar