有没有办法滚动反应导航选项卡导航器标题



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

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

将其添加到 taBarOptions

scrollEnabled: true

最新更新