react-native-collapsible-tab-view icon indicating copy to clipboard operation
react-native-collapsible-tab-view copied to clipboard

How do I remove ripple effect from tab labels?

Open hectormemaree opened this issue 2 years ago • 4 comments

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

hectormemaree avatar Jul 06 '23 19:07 hectormemaree

This should work

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

lorenzogonnelli avatar Oct 03 '23 09:10 lorenzogonnelli

awesome @lorenzogonnelli ty

SwanHub avatar Nov 21 '23 02:11 SwanHub

This will work.

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

VRDemon avatar Dec 01 '23 05:12 VRDemon