import * as calendarModule from "nativescript-ui-calendar" ; let calendar ; export function onPageLoaded ( args ) { const page = args . object ; calendar = page . getViewById ( "calendar" ) ; } export function onNavigateForwardTap ( args ) { calendar . navigateForward ( ) ; } export function onNavigateBackTap ( args ) { calendar . navigateBack ( ) ; } export function onGoToDateTap ( args ) { const date = new Date ( ) ; calendar . goToDate ( date ) ; }