question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[native-stack] [iOS]: headerTranslucent doesn't work and causes issues with layout

See original GitHub issue

Hi,

When adding headerTranslucent: true on iOS, the header does NOT get translucent, but instead, some new issues are caused by it.

Without headerTranslucent:

image

With headerTranslucent:

image

Note that the spacing from top is wrong and the content are now under the header (the week strip is not shown). And also the header does not turn translucent.

I’m using react-native-screens@2.0.0-beta.13 and @react-navigation/native-stack@5.0.3

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:29 (14 by maintainers)

github_iconTop GitHub Comments

3reactions
arjndrcommented, May 28, 2020

@sallar setting contentInsetAdjustmentBehavior="automatic" on ScrollView seems to fix the layout issue

3reactions
WoLewickicommented, May 12, 2020

What behavior do you want to achieve? setting headerTranslucent: true on iOS 13 makes the content not respect the header’s height and appears under it. If you want to see the content below the header, use semi-transparent header backgroundColor, e.g.

headerTranslucent: true,
headerStyle: {backgroundColor: 'rgba(255,255,255,.8)'},
Read more comments on GitHub >

github_iconTop Results From Across the Web

Transparent background for header using ...
Should I just hide the header and use a View that contains the element that I want? If yes will this cause any...
Read more >
Transparent Header – Submenu background color STILL !!! ...
Hi,. I have read the changelog of the astra theme and I just want to tell you so much: the background colors of...
Read more >
Supporting safe areas
While React Native exports a SafeAreaView component, it has some inherent issues, i.e. if a screen containing safe area is animating, it causes...
Read more >
How to achieve translucent header with scroll items going ...
I got iOS to work super simply using react navigation. But Android, the best I can get is a forever translucent view which...
Read more >
How to disable automatic transparent navbar in iOS 15
Because this is enabled by default, it might cause visual issues for your app. I had to fix this in couple apps and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found