react-navigation / react-navigation/react-navigation

headerBackTitle depends on title 'size'

Open
#8,594 0 comments 1 reaction 0 assignees View on GitHub

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 uses headerTruncatedBackTitle

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.
    output

Your Environment

software version
iOS 13.5
@react-navigation/native 5.7.0
@react-navigation/stack 5.7.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.