【发布时间】:2017-05-22 16:39:19
【问题描述】:
我在 React Native 中使用 react-navigation,并且我已经更改了标题颜色
const MyScreenNavigator = StackNavigator({
...
}, {
navigationOptions: {
headerStyle: {
backgroundColor: 'blue',
},
headerTintColor: 'white'
}
});
它确实改变了标题和状态栏的背景颜色,但状态栏中的字体颜色仍然是黑色。
如何自定义状态栏的字体颜色?
【问题讨论】:
标签: javascript node.js reactjs react-native react-navigation