React Navigation in Functional Components

Set header title in stack navigator

Component.navigationOptions = {
  headerTitle: 'Conversations'
}

or a callback function if you wanna use props

Home.navigationOptions = () => {(
    title:'Home'
)}