A plugin for Nativescript framework implementing exit function for the application
npm install nativescript-exit --save
import {exit} from 'nativescript-exit'; exit();