MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / navigateWithEntry

Function navigateWithEntry

apps/automated/src/ui-helper.ts:219–229  ·  view source on GitHub ↗
(entry: NavigationEntry, topFrame?: Frame)

Source from the content-addressed store, hash-verified

217}
218
219export function navigateWithEntry(entry: NavigationEntry, topFrame?: Frame): Page {
220 const page = Builder.createViewFromEntry(entry) as Page;
221 entry.moduleName = null;
222 entry.create = function () {
223 return page;
224 };
225
226 waitUntilNavigatedFrom(() => (topFrame ? topFrame.navigate(entry) : Frame.topmost().navigate(entry)));
227
228 return page;
229}
230
231export function goBack(topFrame?: Frame) {
232 waitUntilNavigatedFrom(() => (topFrame ? topFrame.goBack() : Frame.topmost().goBack()));

Callers 3

navigateFunction · 0.85
navigateWithHistoryFunction · 0.85
navigateToModuleFunction · 0.85

Calls 4

waitUntilNavigatedFromFunction · 0.85
createViewFromEntryMethod · 0.80
navigateMethod · 0.65
topmostMethod · 0.45

Tested by

no test coverage detected