Nativescript variable declaration from plugin


#1

Sir How we can write the following code using Javascript?

import {
CFAlertDialog,
DialogOptions,
CFAlertGravity,
CFAlertActionAlignment,
CFAlertActionStyle,
CFAlertStyle
} from “nativescript-cfalert-dialog”;


#2
var cfalertDialogModule = require("nativescript-cfalert-dialog");
cfalertDialogModule.CFAlertDialog