react-native: 0.57.8react-native-gesture-handler: 1.0.15When RectButton and BorderlessButton are placed together, ripple of ReactButton dimensions of BorderlessButton's ripple. The behaviour starts to be even inconsistent/weird if when RectButton and BorderlessButton have borderRadius. Wrong behaviour can be observed when the app is killed and started again, reloading JS bundle usually produce correct results, but starting the app does not.
<View style={{ flex: 1, justifyContent: 'space-evenly', width: '100%' }}>
<RectButton>
<Text>Hello</Text>
</RectButton>
<View style={{ width: '50%' }}>
<BorderlessButton borderless={false}>
<Text>World</Text>
</BorderlessButton>
</View>
</View>

RectButton -> wrong ripple size + ripple on BorderlessButton has rounded corners (it should not have)<View style={{ flex: 1, justifyContent: 'space-evenly', width: '100%' }}>
<RectButton style={{ borderRadius: 5 }}>
<Text>Hello</Text>
</RectButton>
<View style={{ width: '50%' }}>
<BorderlessButton borderless={false}>
<Text>World</Text>
</BorderlessButton>
</View>
</View>

It seems like the ripple just sizes itself to the last rendered Button of any kind.
e.g.
<RectButton
style={{backgroundColor: '#CCC', width: 200, height: 60}}
rippleColor={'#666'}
/>
<RectButton
style={{backgroundColor: '#CCC', width: 150, height: 40}}
rippleColor={'#666'}
/>
reproduces this quite readily:

@zamotany @olegbl Were you guys able to fix this issue? I think I am having similar issues .
Nope, just avoided using the button part of this lib.
@olegbl Okay. I think I will have to do the same.
This bug is still present in:
"react-native": "0.61.0",
"react-native-gesture-handler": "^1.3.0",
Hi,
made work around which seems to work same way as <RectButton> but without glitch.
I've created new component and replaced it anywhere I used <RectButton>
here is a code snippet:
const NativeButton = props => {
const { children, style, ...others } = props;
return Platform.OS === 'android' ? (
<View style={{ backgroundColor: '#ffffff00' }}>{/*setting background color stops borderless ripple*/}
<BorderlessButton {...others} style={style}>
{children}
</BorderlessButton>
</View>
) : (
<RectButton {...others} style={style}>
{children}
</RectButton>
);
};
export default NativeButton;
Still reproducing
This is still happening and it's kinda a pain to handle. Having a proper Touchable component to handle all this "problems" is really hard. Is it possible to support default _borderless_ property?
Most helpful comment
Hi,
made work around which seems to work same way as
<RectButton>but without glitch.I've created new component and replaced it anywhere I used
<RectButton>here is a code snippet: