Nativebase: Transparent header

Created on 3 Sep 2016  路  3Comments  路  Source: GeekyAnts/NativeBase

I have a background image in a view so I'd like the header to be transparent. Setting the backgroundColor to transparent however gets an error:
"RCTView has a shadow set but cannot calculate shadow efficiently."

Is there a better way to make the header transparent?

Most helpful comment

For anyone trying to figure this out I was able to add style={{ shadowOpacity: 0 }} to get rid of the shadow and error.

All 3 comments

For anyone trying to figure this out I was able to add style={{ shadowOpacity: 0 }} to get rid of the shadow and error.

set
Header style={{elevation:0}}
its works
thank you @ChetanGodiya4

The noShadow prop of Header removes shadow from iOS Header and elevation from Android Header.

https://docs.nativebase.io/Components.html#header-no-shadow-headref

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nschurmann picture nschurmann  路  3Comments

Cotel picture Cotel  路  3Comments

georgemickael-b picture georgemickael-b  路  3Comments

muthuraman007 picture muthuraman007  路  3Comments

agersoncgps picture agersoncgps  路  3Comments