(args: NavigatedData)
| 5 | import { isAndroid } from '@nativescript/core/platform'; |
| 6 | |
| 7 | export function onNavigatedTo(args: NavigatedData) { |
| 8 | TKUnit.assertEqual(Frame._stack().length, 2, 'Host and tab modal frame should be instantiated at this point!'); |
| 9 | // shownModally raised after page.NavigatedTo on iOS so we close modal there |
| 10 | if (isAndroid) { |
| 11 | (args.object as View).closeModal(); |
| 12 | } |
| 13 | } |