# Configuring the Header In the previous example, we created a StackNavigator to display several screens in our app. When navigating to a chat screen, we can specify params for the new route by providing them to the navigate function. In this case, we want to provide the name of the person on the chat screen: ```js this.props.navigation.navigate('Chat', { user: 'Lucy' }); ``` The `user` param can be accessed from the chat screen: ```js class ChatScreen extends React.Component { render() { const { params } = this.props.navigation.state; return Chat with {params.user}; } } ``` ### Setting the Header Title Next, the header title can be configured to use the screen param: ```js class ChatScreen extends React.Component { static navigationOptions = { // // Title may be a simple string: // title: 'Hello', // Or the title string may be a function of the navigation prop: title: ({ state }) => `Chat with ${state.params.user}` }; ... } ``` ```phone-example basic-header ``` ### Adding a Right Button Then we can add a [`header` navigation option](/docs/navigators/navigation-options#Stack-Navigation-Options) that allows us to add a custom right button: ```js static navigationOptions = { header: { right: