import { Page } from 'ui/page' ; import { path , knownFolders } from "file-system" ; import { resolveFileName } from "file-system/file-name-resolver" ; import { BottomNavigationFrame , BottomNavigation , BottomNavigationItem , Icon , Title , SelectItemEventData } from "nativescript-nbmaterial-bottomnav" ; import "nativescript-nbmaterial-bottomnav/start" ; export function selectNav ( args ) { console . log ( "NAVIGATE TO : " , args . index ) ; switch ( args . index ) { case 0 : console . log ( "NAVIGATE TO : LISTPAGE" ) ; args . nextEntry = ( { moduleName : "home/home-page" } ) ; break ; case 1 : console . log ( "NAVIGATE TO : FORMsPAGE" ) ; args . nextEntry = ( { moduleName : "form/form-page" } ) ; break ; case 2 : console . log ( "NAVIGATE TO : SHOWPAGE" ) ; args . nextEntry = ( { moduleName : "show/show-page" } ) ; break ; case 3 : args . nextEntry = ( { moduleName : "form/form-page" } ) ; break ; case 4 : default : return null ; } }