import { EventData } from "tns-core-modules/data/observable" ; import { Page } from "tns-core-modules/ui/page" ; import { HelloWorldModel } from "./main-view-model" ; import { SwissArmyKnife } from "nativescript-swiss-army-knife" ; import { ActionItem , ActionItems } from "tns-core-modules/ui/action-bar" ; import * as buttonModule from "tns-core-modules/ui/button" ; export function navigatingTo ( args ) { const page = < Page > args . object ; SwissArmyKnife . setAndroidNavBarTranslucentFlag ( ) ; SwissArmyKnife . setAndroidStatusBarColor ( "deepskyblue" ) ; page . style . paddingTop = SwissArmyKnife . getScreenHeight ( ) . androidStatusBar ; page . bindingContext = new HelloWorldModel ( ) ; }