Easy way to detect which page are navigating from


forexample I have x page and if i’m navigating to this x page from y I want to show something in x page
but if I’m navigating to x page from z page dont show nothing or show different thing.


Hi, have you read the docs
btw you can get instance of the current page you are on with

import { topmost, NavigationEntry } from "tns-core-modules/ui/frame";
const topFrame = topmost();
const currentPage = topFrame.currentPage;


how can i use this currentPage? what type is this? in debugger it says currentPage is undefined but when i do console log it logged Page(313)@file:///somepage/somepage.xml:1:1;