【问题标题】:How Can I change or style the Arrow inside the "rightcircle" Icon in React Native?如何更改或设置 React Native 中“rightcircle”图标内的箭头?
【发布时间】:2021-08-12 17:25:27
【问题描述】:

如何更改 React Native 中“rightcircle”图标内的箭头颜色或样式?

箭头的默认颜色是白色

https://icons.expo.fyi/AntDesign/rightcircle

【问题讨论】:

    标签: react-native expo


    【解决方案1】:

    那个图标的 SVG 是填充的部分,也就是说箭头不是白色的,实际上是透明的,所以你需要将图标包裹在一个大小合适的视图上并改变背景颜色:

    <View style={{
        backgroundColor:"red",
        width:24,
        height:24,
        borderRadius:12
      }}>
        <AntDesign style={{
        }} name="rightcircle" size={24} color="black"/>
      </View>
    

    【讨论】:

    • 谢谢你卡罗???
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-13
    • 1970-01-01
    • 2020-09-15
    • 2021-06-10
    • 1970-01-01
    • 2022-11-30
    相关资源
    最近更新 更多