如何更改Tabbar中图标的颜色? (反应本机导航)
How to change the color of icon in Tabbar? (react-native-navigation)
我只想在 TabBar 中显示纯图标图像
但是在iOS里面是这样显示的
下面是原图
我觉得基本在IOS。我想删除颜色或设置为透明。
可能吗?
我尝试更改 tabsStyle 以进行下面的一些测试。
tabsStyle: {
tabBarBackgroundColor: '#000',
tabBarButtonColor: '#fff',
tabBarSelectedButtonColor: '#fff',
}
左图是作品,但右图很奇怪。
环境
React Native:“0.55.2”
react-native-navigation: "^1.1.438"
平台:iOS
您可以使用 tabStyle
。例如
tabsStyle: {
tabBarBackgroundColor: '#fff',
tabBarButtonColor: '#fff',
tabBarSelectedButtonColor: '#fff',
}
解决了。
我现在正在使用 react-native-navigation "v2"。
这工作正常。
我只想在 TabBar 中显示纯图标图像
但是在iOS里面是这样显示的
下面是原图
我觉得基本在IOS。我想删除颜色或设置为透明。 可能吗?
我尝试更改 tabsStyle 以进行下面的一些测试。
tabsStyle: {
tabBarBackgroundColor: '#000',
tabBarButtonColor: '#fff',
tabBarSelectedButtonColor: '#fff',
}
左图是作品,但右图很奇怪。
环境
React Native:“0.55.2”
react-native-navigation: "^1.1.438"
平台:iOS
您可以使用 tabStyle
。例如
tabsStyle: {
tabBarBackgroundColor: '#fff',
tabBarButtonColor: '#fff',
tabBarSelectedButtonColor: '#fff',
}
解决了。
我现在正在使用 react-native-navigation "v2"。
这工作正常。