【问题标题】:TabNavigator trailing through all the tabs when changing the tab更改选项卡时,TabNavigator 跟踪所有选项卡
【发布时间】:2017-11-21 07:00:04
【问题描述】:

我在我的 react-native 应用程序中使用 react-navigation 的 TabNavigator,当我从第一个选项卡点击到第四个选项卡时,它让我在过渡到第四个选项卡时也可以看到第二个和第三个选项卡。有没有办法避免呢?

【问题讨论】:

    标签: react-native react-redux react-navigation react-native-ios tabnavigator


    【解决方案1】:
    • 在 tabNavigatorConfig 中添加 animationEnabled:false,。但我建议不要因为从第一个选项卡动画路由到第四个选项卡动画会产生在应用中看起来不错的过渡效果

    【讨论】:

      猜你喜欢
      • 2018-07-05
      • 1970-01-01
      • 2016-12-05
      • 2016-01-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多