【发布时间】:2018-11-30 17:49:58
【问题描述】:
我想用多种颜色标题实现导航器,但它只设置了一种颜色
如何设置多色标题?
class Home extends Component {
render() {
return (
<View>
<StatusBar barStyle="light-content" />
</View>
);
}
}
Home.navigationOptions = {
title: 'Home',
headerStyle: {
backgroundColor: MyConstants.colorNavbar,
},
headerTitleStyle: {
color: 'white',
},
headerBackTitleStyle: {
color: 'white',
},
headerTintColor: 'white',
};
export default Home;
【问题讨论】:
标签: javascript ios objective-c reactjs react-native