TabNavigator简单属性(慢慢更新)

lazy:true,                   //懒加载(一次性把TabNavigator中的所有页面都加载出来)

tabBarPosition    //导航条位置

tabBarOptions:{
    style:{backgroundColor:'#FFF',height:40},  //导航栏的样式
    activeTintColor:'#EB0707',       //被选中时文字和图片的颜色
    inactiveTintColor:'#757575',    //未被选中时文字和图片的颜色
    showIcon:true     //是否显示图标,默认false,不显示地置为true的话,即使设置了图片,也不会显示
},

 附

隐藏导航:https://blog.csdn.net/qq_41915690/article/details/80347219

猜你喜欢

转载自blog.csdn.net/qq_41915690/article/details/80348230