react-navigation / react-navigation/react-navigation
headerBackTitle depends on title 'size'
Open
Nobody has claimed this yet.
bug
package:stack
- Dominant language
- TypeScript
- Stars
- 24.5k
- Forks
- 5.1k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 18
Description
Current Behavior
- The video screen has no title
title: ''. When navigating there, sometimes the back button is previous' scene headerTitle and sometimes usesheaderTruncatedBackTitle
Expected Behavior
- I'd expect always to have the previous' scene headerTitle.
- It is not clear how the library computes if it 'fits' or if it has to use
headerTruncatedBackTitle. - The key here is that I specifically set
title: ''to have all the space possible.

Your Environment
| software | version |
|---|---|
| iOS | 13.5 |
| @react-navigation/native | 5.7.0 |
| @react-navigation/stack | 5.7.0 |
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the navigation shown in the report on iOS 13.5 with @react-navigation/native and @react-navigation/stack 5.7.0, using an empty video-screen title and the previous scene's headerTitle. Trace how the stack chooses between that title and headerTruncatedBackTitle; done means the previous scene's headerTitle is used consistently when title is empty.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100