getCurrentPages(): PageObject[]
Get the current page stack. In the array, the first element is the homepage and the last element is the current page.
Things to note
- Do not try to modify the page stack. Otherwise, the route and page status might not work properly.
- When
App.onLaunchis executed, do not callgetCurrentPages(), becausepageis not generated.
Example
page/index.js