Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

Remove default bottom border? #828

Closed
karanpratapsingh opened this issue Jul 1, 2019 · 4 comments
Closed

Remove default bottom border? #828

karanpratapsingh opened this issue Jul 1, 2019 · 4 comments
Labels

Comments

@karanpratapsingh
Copy link

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

Screenshot 2019-07-01 at 1 13 54 PM

@karanpratapsingh
Copy link
Author

karanpratapsingh commented Jul 1, 2019

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 
}}
/>

@springkjw
Copy link

springkjw commented Sep 8, 2019

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 
     }}
   />
 }
/>

@VSV6
Copy link

VSV6 commented Aug 28, 2020

@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.

@nhanpdnguyen
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants