static navigationOptions = {
headerTitle:'Booking',
headerTitleStyle: {color:'white'},
headerStyle: {backgroundColor:'orange'}
}
我的标题看起来像这样。我想更改 IOS 上默认后退按钮图标的颜色。我可以更改标题的颜色,但没有选项可以更改图标的颜色。我想知道是否有办法改变颜色或实现我自己的 headerLeft 属性是更好的选择?
有一个属性标题色调颜色在 navigationOptions 中可用于更改后退按钮图标颜色
static navigationOptions = {
headerTitle:'Booking',
headerTitleStyle: {color:'white'},
headerTitleAlign: 'center',
headerStyle: {backgroundColor:'orange'},
headerTintColor: 'blue'
}
Doc: https://reactnavigation.org/docs/elements/#headertintcolor https://reactnavigation.org/docs/elements/#headertintcolor
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)