-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
HeaderBackButton title prop #5802
Copy link
Copy link
Closed
Description
PROBLEM
I'm having problems, I need to set the back button title on screen two because on screen one I do not have access to the information I want to be shown in the title, I'm trying to use the prop title of the HeaderBackButton in version 3.6.1 of react-navigation but this isn't working.
Current Behavior
Hello, I'm working in Rocket.Chat.ReactNative Project and I'm implementing count of unread messages on headerBackButton, but my app does not show the title of HeaderBackButton Component.
On the use HeaderBackButton the prop 'title' doesn't work.
Expo Snack example:
Expo-Navigation
Example:
static navigationOptions = ({ navigation }) => {
return {
headerLeft: (
<HeaderBackButton
title='test'
onPress={() => navigation.goBack()}
/>
)
};
}Expected Behavior
I want to show the prop 'Title' in the right of the button.
Your Environment
| software | version |
|---|---|
| react-navigation | 3.6.1 |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
