想要左右滚动标签浏览器标题选项。只想滚动选项而不是组件。有什么办法吗?
const MyNav = TabNavigator({
News: { screen: NewsScreen },
Videos: { screen: VideosScreen },
Bands: { screen: BandsScreen },
Jokes: { screen: JokesScreen },
}, {
tabBarPosition: 'top',
animationEnabled: true,
tabBarOptions: {
activeTintColor: '#e91e63',
},
});
答案 0 :(得分:0)
将此添加到taBarOptions
scrollEnabled: true