Nativebase: Question/Bug: Header shadow is going under Content

Created on 28 Nov 2017  路  4Comments  路  Source: GeekyAnts/NativeBase

react-native, react and native-base version

React-native : 0.50.4
Native-base: 2.3.3

Expected behaviour

The header's shadow is drawing over the content view

Actual behaviour

The header's shadow is under the content view

Steps to reproduce (code snippet or screenshot)

header-shadow-bug

Is the bug present in both ios and android or in any one of them?

Tested on IOS, not tested on android

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

I tried zIndex on the header but it does not have any effect.

Thanks for your help !

awaiting response

Most helpful comment

@etabard setting zIndex to negative values in Content style made the shadow visible.

<Content style={{zIndex:-3}}/>

All 4 comments

@etabard tried Native base Header component with the above versions and platform. Didn't find anything like above. Can you share the code snippet.

Hi,

Thanks for your reply. Here is my TestScreen with the native-base-theme/components/Header.js : https://gist.github.com/etabard/f1130c3ba06f87091a0352666b5890e4

Screen of the result :
test-shadow

@etabard setting zIndex to negative values in Content style made the shadow visible.

<Content style={{zIndex:-3}}/>

Thanks ! I tried everything except negative zIndex :-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bundas picture Bundas  路  3Comments

sihemhssine picture sihemhssine  路  3Comments

mcpracht picture mcpracht  路  3Comments

omerdn1 picture omerdn1  路  3Comments

aloifolia picture aloifolia  路  3Comments