I'm attempting to enclose an icon within a button, like so:
<Button
style={styles.radioButton}
onPress={() => {
console.log('hdjwk');
}}>
<Icon
style={styles.icon}
name="circle-thin"
color="#31C283"
size={moderateScale(20)}
/>
</Button>
...
radioButton: {
backgroundColor: 'white',
borderRadius: 0,
borderColor: 'white',
},
icon: {
paddingTop: moderateScale(12),
},
However, when I insert the icon into the button, it shifts downward and an outline appears despite setting the borderRadius to 0. How can I adjust this so that it appears seamless with no distinct background screen or border around the icon?