在两个嵌套的Tab React Native中重新加载子Tab

时间:2018-07-25 09:42:39

标签: react-native

我的路由器:

const TabRoot = createBottomTabNavigator({
    TabMarket: TabMarket,
    Favorite: Favorite,
    Noti: Noti,
    News: News,
    User: User
}

const TabMarket = createMaterialTopTabNavigator({
    USDT: MarketComponent,
    BTC: MarketComponent,
    ETH: MarketComponent,
    HT: MarketComponent
}
屏幕上的

最喜欢的按钮,单击导航到TabMarket中的USDT选项卡。 但是当在选项卡BTC中时,返回到“收藏夹”。我单击按钮,它再次导航到BTC。 如何自定义以始终导航到USDT

0 个答案:

没有答案