Sau*_*ani 5 react-native react-navigation
static navigationOptions = {
headerTitle:'Booking',
headerTitleStyle: {color:'white'},
headerStyle: {backgroundColor:'orange'}
}
Run Code Online (Sandbox Code Playgroud)
我的标题看起来像这样.我想更改IOS上默认后退按钮图标的颜色.我可以更改标题的颜色,但没有选项可以更改图标的颜色.我想知道是否有办法改变颜色或实现我自己的headerLeft属性是一个更好的选择?
Rav*_*Raj 10
navigationOptions中有一个属性headerTintColor,可用于更改后退按钮图标颜色
static navigationOptions = {
headerTitle:'Booking',
headerTitleStyle: {color:'white'},
headerStyle: {backgroundColor:'orange'},
headerTintColor: 'blue'
}
Run Code Online (Sandbox Code Playgroud)
参考:https://reactnavigation.org/docs/navigators/stack#headerTintColor
| 归档时间: |
|
| 查看次数: |
2918 次 |
| 最近记录: |