React-native-tab-view: how to remove the bottom line in tabBar

Created on 26 Aug 2019  ·  5Comments  ·  Source: satya164/react-native-tab-view

QQ图片20190826094507

How can I remove the tabbar bottom line

bug

Most helpful comment

for reference, the line is a box shadow. Setting shadowOpacity and elevation to 0 on TabBar gets rid of it.

All 5 comments

I got it.

What was the solution?

for reference, the line is a box shadow. Setting shadowOpacity and elevation to 0 on TabBar gets rid of it.

In my case, setting shadowOpacity: 0 works well.

<TabBar
     {...props}
     indicatorStyle={{ backgroundColor: Colors.blue.alt2 }}
     style={{ backgroundColor: Colors.white.default, shadowOpacity: 0 }}
     activeColor={Colors.blue.alt2}
     inactiveColor={Colors.grey.default}
  />

@shahabrauf18 not in TabBar though, in the TabView!

Was this page helpful?
0 / 5 - 0 ratings