Skip to content

headerTitleAlign set to "center" is broken on Android 4.0.0-beta.14 #2435

@itsramiel

Description

@itsramiel

Description

Hi,

I am using react-native-screens 4.0.0-beta.14 and I would like to center my title, however the title is not centered but instead left aligned in a weird way. Can be always reproduced within the example of this repo:

Screen.Recording.2024-10-22.at.9.01.48.PM.mov

Steps to reproduce

Either have a Navigation with headerTitleAlign set to center or clone my fork, run the example app, and follow the video

Snack or a link to a repository

https://github.com/itsramiel/react-native-screens/tree/chore/reproduce

Screens version

4.0.0-beta.14

React Native version

0.74.5

Platforms

Android

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Paper (Old Architecture)

Build type

Debug mode

Device

Android emulator

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

Labels

Platform: AndroidThis issue is specific to AndroidRepro providedA reproduction with a snack or repo is provided

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions