import { ShownModallyData } from '@nativescript/core' ; let closeCallback ; export function onShownModally ( args ) { closeCallback = args . closeCallback ; } export function onTap ( ) { closeCallback ( 'sample text\n' ) ; }