I am using Vector Icons as Icon.Button and I would like to have two Cancel and Accept Icons.
I am doing this:
JavaScript
x
9
1
<View style={{ flexDirection: "row", justifyContent: 'space-between'}}>
2
<TouchableOpacity style={{borderColor: 'red'}}>
3
<Icon.Button backgroundColor={RED} name="ios-close-circle-outline" size={20} />
4
</TouchableOpacity>
5
<TouchableOpacity style={{borderColor: 'red'}}>
6
<Icon.Button backgroundColor={GREEN} name="ios-checkmark-circle-outline" size={20} />
7
</TouchableOpacity>
8
</View>
9
I am getting this:
I would like this:
How to invert react native vector icon buttons color? Thanks
Advertisement
Answer
Change backgroundColor
to transparent, set the color property to the preferred color and bump the size.