NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

Transparent header stopped working

Open Agilulfo1820 opened this issue 6 years ago • 5 comments

I have gone through these following points

  • [x] Check latest documentation: https://docs.nativebase.io/
  • [x] Check for existing open/closed issues for a possible duplicate before creating a new issue: https://github.com/GeekyAnts/NativeBase/issues
  • [x] Use the latest NativeBase release: https://github.com/GeekyAnts/NativeBase/releases
  • [x] For queries related to theme, check Theme Variables from Docs and live NativeBase Theme Editor http://nativebase.io/customizer/

Issue Description

node, npm, react-native, react and native-base version, expo version if used, xcode version

"react": "16.9.0", "expo": "^37.0.0", "react-navigation": "^4.0.10", "native-base": "2.13.8",

Expected behaviour

When using <Header transparent/> the android status bar should have the color of the header with a bit of opacity.

Actual behaviour

The Header is transparent but the android status bar takes the default color theme. Now when going to a screen without the <Header/> component the android status bar has a black color and a margin bottom (which wasn't there before).

Steps to reproduce

I created a repo with expo, react navigation and native base to demonstrate the issue. https://github.com/Agilulfo1820/mvce-header-bug

Is the bug present in both iOS and Android or in any one of them?

The bug is present in both iOS and Android.

Any other additional info which would help us debug the issue quicker.

This bug wasn't present since 3 weeks ago (after 5 months of developing). Don't know if it's related to expo or react navigation.

Here are a few screenshots: How broken header presents: 78924529-4f2b2000-7a9a-11ea-825b-517e55cdd94a

Before entering screen with the broken header: 78924533-505c4d00-7a9a-11ea-882d-3ab498775edc

Returning to this screen after been to the screen with broken header: 78924531-4fc3b680-7a9a-11ea-9cbb-49c6735582f1

Agilulfo1820 avatar Apr 26 '20 17:04 Agilulfo1820

Hi Guys any update on this, i am also facing similar issue

swaraasolutions avatar Jul 22 '20 08:07 swaraasolutions

At the end I changed all headers with react native paper and solved it. It's a bit of a pain but the good thing is that Paper lets you load only the component you use, so I don't have to load the entire library to only use the header.

Agilulfo1820 avatar Jul 22 '20 09:07 Agilulfo1820

facing the same issue

shrhawk-entertainer avatar Sep 15 '20 09:09 shrhawk-entertainer

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 21 '20 12:12 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 03 '22 04:02 stale[bot]