React Native-导航条设置
2016-12-11 23:17
295 查看
NavigatorIOS设置barTintColor后,颜色和实际颜色有差别
1.使用NavigatorIOS控件设置导航条颜色<NavigatorIOS style = {BmacStyles.container} initialRoute={{ component: MainPage, title: '', leftButtonTitle:'左边按钮', tintColor:'#ffffff',//白色 导航栏上按钮的颜色。 barTintColor:'rgb(30, 129, 210)',//导航栏,蓝色 }} > </NavigatorIOS>
效果如下
2.增加一个属性即可解决
<NavigatorIOS style = {BmacStyles.container} initialRoute={{ component: MainPage, title: '', leftButtonTitle:'左边按钮', tintColor:'#ffffff',//白色 导航栏上按钮的颜色。 barTintColor:'rgb(30, 129, 210)',//导航栏,蓝色 translucent: false, }} > </NavigatorIOS>
相关文章推荐
- React虚拟DOM浅析
- React-native运行异常之一一SyntaxError:Strict mode does not allow function declaration in a lexically nested
- 基础篇章:React Native 之 TextInput 的讲解
- 基础篇章:关于 React Native 之 Picker 组件的讲解
- React-Native初学者的模拟器调试及真机调试
- React 组件性能优化
- React Native之ListView实现九宫格效果
- React Native之ListView实现九宫格效果
- React Native之ListView实现九宫格效果
- 【React Native 实战】商品分类
- [react native]学习日志---es6语法学习
- React Native布局实践:开发京东客户端首页遇到的坑
- React组件规范和生命周期
- React Native环境配置之Windows版本搭建
- [置顶] React Native实现一个自定义模块
- React Native实现一个自定义模块
- React Native实现一个自定义模块
- React Native环境配置之Windows版本搭建
- 反应器(Reactor)和主动器(Proactor)
- There is an internal error in the React performance measurement code.Did not expect componentDidMount timer to start while render timer is still in progress for another instance