index.js
var application = require("application"); var context = application.android.context; module.exports = { showToast: function() { var toaster = new org.nativescript.kstanoev.toaster.Toaster(); toaster.show(context); } };