React-native-vector-icons: borderRadius not working on IOS

Created on 29 Jan 2019  路  3Comments  路  Source: oblador/react-native-vector-icons

Environment

I have this issue only with IOS platform

Description

This is my code :

 <MaterialIcon name={props.iconName} size={25} color='white' style={{padding:5, borderRadius: 50, backgroundColor: '#727272'}}/>

As you can see i set borderRadius 50 but i can't see any changes

Demo

And this is what it look like :

screen shot 2019-01-29 at 1 22 46 pm

Any help regarding this would be helpful

Most helpful comment

Icons are Text components where borderRadius doesn't have any effect, wrap it in a view 馃檪

<View style={{padding:5, borderRadius: 50, backgroundColor: '#727272'}}>
  <MaterialIcon name={'assignment-late'} size={25} color='white'/>
</View>

materialicon
(Screenshot from iOS build)

All 3 comments

Icons are Text components where borderRadius doesn't have any effect, wrap it in a view 馃檪

<View style={{padding:5, borderRadius: 50, backgroundColor: '#727272'}}>
  <MaterialIcon name={'assignment-late'} size={25} color='white'/>
</View>

materialicon
(Screenshot from iOS build)

doesn't work for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AbhayVarshney picture AbhayVarshney  路  3Comments

afilp picture afilp  路  4Comments

tharrington picture tharrington  路  4Comments

jakewtaylor picture jakewtaylor  路  4Comments

fevzican picture fevzican  路  3Comments