有没有办法滚动反应导航tabNavigator标题?

时间:2018-01-13 08:40:45

标签: react-native react-navigation tabnavigator

想要左右滚动标签浏览器标题选项。只想滚动选项而不是组件。有什么办法吗?

const MyNav = TabNavigator({
  News: { screen: NewsScreen },
  Videos: { screen: VideosScreen },
  Bands: { screen: BandsScreen },
  Jokes: { screen: JokesScreen },
}, {
  tabBarPosition: 'top',
  animationEnabled: true,
  tabBarOptions: {
    activeTintColor: '#e91e63',
  },
});

1 个答案:

答案 0 :(得分:0)

将此添加到taBarOptions

scrollEnabled: true