Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6213

remove button outline native-base

$
0
0

I am trying to wrap an icon in a button. Like this:

<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 wrap my icon with the button, the icon is pushed downwards and an outline starts to appear even though I have set the borderRadius as 0. How can I fix this such that it looks natural and there's no distinction between the background screen and the icon?

enter image description here


Viewing all articles
Browse latest Browse all 6213

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>