Fix 'setting the header title' example (#56)

This commit is contained in:
Michael Guida 2017-01-28 03:33:36 -07:00 committed by Satyajit Sahoo
parent 1fa38c2af8
commit af7c3a3324

View File

@ -31,7 +31,7 @@ class ChatScreen extends React.Component {
// title: 'Hello',
// Or the title string may be a function of the navigation prop:
title: ({ navigation }) => `Chat with ${navigation.state.params.user}`
title: ({ state }) => `Chat with ${state.params.user}`
};
...
}