【问题标题】:NativeScript BottomNavigation -> how to open default page on bottom navigation item tap?NativeScript BottomNavigation -> 如何在底部导航项点击时打开默认页面?
【发布时间】:2021-02-28 21:24:46
【问题描述】:

我有一个名为“基金”的页面。我有 5 个标签的底部导航 - “主页”/“投资组合”和其他 3 个。默认情况下,所有选项卡都有自己的导航堆栈,如果在主页中打开“基金”,然后在我返回主页时打开投资组合,“基金”仍然会打开。

我的目标是在每次触摸时打开默认页面以打开底部导航标签。

Here is the sample code {N} Playground

【问题讨论】:

标签: nativescript nativescript-vue


【解决方案1】:

已解决this 问题

很有可能 Frame.topmost() 在选项卡期间感到困惑 过渡。但是,您可以访问某个选项卡框架并调用 goBack() 。检查这个游乐场,让我知道它是否解决了 你的问题: https://play.nativescript.org/?template=play-tsc&id=4Ij5yz&v=7

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-06-22
    • 1970-01-01
    • 2018-11-25
    • 2021-11-27
    • 2021-09-11
    • 1970-01-01
    • 2020-02-11
    • 1970-01-01
    相关资源
    最近更新 更多