react-native - 为什么图标没有显示在 createMaterialTopTabNavigator 中?
问题描述
const RootNavigation = createMaterialTopTabNavigator({
Page1: {screen: Page1,
navigationOptions:{
tabBarLabel:'Page4',
tabBarIcon: () => (
<Icon name="roket" color={tintColor} size={24}></Icon>
)
}},
解决方案
Ionicons 包没有“roket”图标。你把名字传错了。
尝试这个:
<Icon name="rocket" color={tintColor} size={24}></Icon>
您可以在此处搜索图标:https ://ionicons.com/
推荐阅读
- mysql - 1064 - 'NUMBER NOT NULL default' 0.0' 附近的语法错误,
- java - 有没有办法将元素从一帧拖放到另一帧?
- dart - 如何在 Flutter 中自定义谷歌地图标记?
- perl - 如何抽象多个嵌套循环?
- sql-server - 您的应用程序错误中发生了未处理的异常
- android - 切换到 PreferenceFragmentCompat 后没有分隔符
- html - Bootstrap 4页脚到底部高度
- tsql - 使用 AND 的 SQL Where 子句
- java - 如何从 IntelliJ 插件的操作事件创建文件?
- c++11 - 从 .txt 文件中读取并循环直到换行