NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

Can't create rounded ripple effect for Button in Header

Open RakhmatovR opened this issue 9 years ago • 4 comments

react-native, react and native-base version

react-native: 0.44.0 react: 16.0.0-alpha.6 native-base: 2.1.4

Expected behaviour

Button shouldn't resize by adding rounded property and should correctly show ripple effect

Actual behaviour

Button resizes and ripple effect is "square"

Steps to reproduce

<Header>
  <Left style={{ marginLeft: 4, marginRight: -20 }}>
	<Button rounded transparent>
	  <Icon name='menu' />
	</Button>
  </Left>
  <Body>
	<Title>Imports List</Title>
  </Body>
  <Right />
</Header>

Screenshot

image

Expected example

image

Is the bug present in both ios and android or in any one of them?

Tested on Android device.

RakhmatovR avatar May 23 '17 08:05 RakhmatovR

I have an incoming fix for this FYI. I'll hopefully be opening a PR later today with some Android-specific button enhancements and theme cleanup.

kherock avatar May 30 '17 17:05 kherock

<Header> <Left> <View style={{ borderRadius: 50, width: 42, height: 42 }}> <TouchableNativeFeedback onPress={() => { this.props.navigation.navigate('DrawerOpen') }} background={TouchableNativeFeedback.Ripple('#fff', true)}> <View style={{ width: 42, height: 42, backgroundColor: 'transparent', justifyContent:'center', alignItems:'center',alignSelf:'center'}} > <Icon name='menu' style={{color:'#fff'}} /> </View> </TouchableNativeFeedback> </View> </Left> <Body> <Title>My App</Title> </Body> <Right> <Button transparent rounded > <Icon name='ios-chatbubbles-outline' /> </Button> </Right> </Header>

roziki-dev avatar Sep 15 '17 08:09 roziki-dev

#1206

SupriyaKalghatgi avatar Feb 06 '18 07:02 SupriyaKalghatgi