mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-24 17:18:09 +00:00
Fix 'setting the header title' example (#56)
This commit is contained in:
parent
1fa38c2af8
commit
af7c3a3324
@ -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}`
|
||||
};
|
||||
...
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user