React-native-tab-view: Remove default bottom border?

Created on 1 Jul 2019  Â·  4Comments  Â·  Source: satya164/react-native-tab-view

Hey, can somebody help me to remove the bottom border on the tab view?

Screenshot 2019-07-01 at 1 13 54 PM

bug

Most helpful comment

It's not border, it's acutally shadow,

You can remove using this:

<Tabview
...
style={{
 shadowOffset: { height: 0, width: 0 }, 
 shadowColor: 'transparent',
 shadowOpacity: 0,
 elevation: 0 
}}
/>

All 4 comments

It's not border, it's acutally shadow,

You can remove using this:

<Tabview
...
style={{
 shadowOffset: { height: 0, width: 0 }, 
 shadowColor: 'transparent',
 shadowOpacity: 0,
 elevation: 0 
}}
/>

If you use renderTabbar Props, Default Bottom Style is in TabBar Component. So you should pass props style in TabBarComponent.

<TabView
...
  renderTabBar={props =>
   <TabBar
     style={{
       shadowOffset: { height: 0, width: 0 }, 
       shadowColor: 'transparent',
       shadowOpacity: 0,
       elevation: 0 
     }}
   />
 }
/>

@springkjw thanks man it really worked for me. I was been looking for a whole day just for this. Now it has been solved. Thank you so much! And I think just elevation: 0 this one is enough to take out the tab bar shadow.

Was finding a solution for Android version and elevation: 0 has worked ✅

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hyochan35 picture hyochan35  Â·  3Comments

AndriiUhryn picture AndriiUhryn  Â·  3Comments

chen504554911 picture chen504554911  Â·  3Comments

t3chnoboy picture t3chnoboy  Â·  3Comments

f6m6 picture f6m6  Â·  3Comments