Is there a way to change the default answer return button to a colored iOS header?

static navigationOptions = {
    headerTitle:'Booking',
    headerTitleStyle: {color:'white'},
    headerStyle: {backgroundColor:'orange'}
  }

My title is as follows. I want to change the color of the default button icon on iOS. I can change the color of the name, but there is no way to change the color of the icon. I was wondering if there is a way to change the color or implement my own headerLeft property is the best option?

+4
source share
1 answer

There is a headerTintColor property in navigationOptions that you can use to change the color of the button icon

static navigationOptions = {
    headerTitle:'Booking',
    headerTitleStyle: {color:'white'},
    headerStyle: {backgroundColor:'orange'},
    headerTintColor: 'blue'
  }

Link: https://reactnavigation.org/docs/navigators/stack#headerTintColor

+2
source

Source: https://habr.com/ru/post/1683264/


All Articles