grahammendick / navigation

Scene-Based Navigation for React and React Native
https://grahammendick.github.io/navigation/
Apache License 2.0
571 stars 40 forks source link

BackTitle not aligned properly when screen is push #737

Closed salisuabubakar closed 10 months ago

salisuabubakar commented 10 months ago

Hi, the backtitle on iOS does not align properly when you push a screen from A which does not have a NavigationBar to screen B which has a navigationBar with the backtitle added to the navigationBar. Below is sample image : unnamed (1)

grahammendick commented 10 months ago

I tried it in the twitter sample and it aligns properly. I set the NavigationBar to hidden on the 'home' scene and added a backTitle to the 'tweet' scene.

https://github.com/grahammendick/navigation/assets/1761227/f8880ec9-b114-449d-bfde-0fdc2c2643d5

grahammendick commented 10 months ago

But there's also no need to set a backTitle. On your first scene set a title and then the back button on the pushed scene with use it

<NavigationBar title="Service" hidden />
salisuabubakar commented 10 months ago

Its working. Thanks