circle outline for fontAwesome icons in react native

前端 未结 3 1637
谎友^
谎友^ 2021-01-28 03:16

I want to use the fontAwesome + icon such that it is in the middle of a circle. I want to use it as one icon item. I read that we can use it along with the circle icon and place

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-28 03:42

    Try this, just adjust according to your needs, and also don't forget to support other browsers for flex.

    const styles = StyleSheet.create({
      thumbnail: {
        height: 68,
        width: 68,
        position: 'relative',
        display: 'flex',
        justifyContent: 'center',
        alignItems: 'center',
        border: '1px solid #333',
        borderRadius: '50%'
      },
    });
    

提交回复
热议问题