MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / onNavigatedTo

Function onNavigatedTo

apps/automated/src/ui/page/modal-tab-page.ts:7–13  ·  view source on GitHub ↗
(args: NavigatedData)

Source from the content-addressed store, hash-verified

5import { isAndroid } from '@nativescript/core/platform';
6
7export 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}

Callers

nothing calls this directly

Calls 1

_stackMethod · 0.80

Tested by

no test coverage detected