PedroBern / react-native-collapsible-tab-view

A cross-platform Collapsible Tab View component for React Native
MIT License
815 stars 161 forks source link

How do I remove ripple effect from tab labels? #347

Open hectormemaree opened 11 months ago

hectormemaree commented 11 months ago

How do I remove or edit ripple color from tab labels?

lorenzogonnelli commented 8 months ago

This should work

<Tabs.Container
      ...
      renderTabBar={props =>
        <MaterialTabBar
          {...props}
          TabItemComponent={props => <MaterialTabItem {...props} android_ripple={{ radius: 0 }}></MaterialTabItem>}
          indicatorStyle={{ backgroundColor: colors.white }} />
      }
    >
SwanHub commented 7 months ago

awesome @lorenzogonnelli ty

VRDemon commented 6 months ago

This will work.

<MaterialTabBar {...tabBarProps} activeColor={c.white} inactiveColor={c.whiteLowOpacity} tabStyle={{ backgroundColor: c.secondary }} TabItemComponent={tabBarItemProps => <MaterialTabItem {...tabBarItemProps} android_ripple={undefined} />} />