使用react-native-vector-icons矢量图标库
1.安装
npm install --save react-native-vector-icons
2.配置:
Android:
方法1:
react-native link react-native-vector-icons
方法2:
在android/app/build.gradle
第二行添加:
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
3.使用:
打开图标库:https://oblador.github.io/react-native-vector-icons/
例如使用AntDesign库下的stepforward图标
import AntDesign from ‘react-native-vector-icons/AntDesign‘; <AntDesign name={‘windows‘} size={50} style={{color:‘blue‘}} />
相关推荐
ICONSYHO 2012-03-28
JayFighting 2020-06-28
星辰大海的路上 2020-06-10
myveer 2020-06-01
willluckysmile 2020-05-03
容数据服务集结号 2020-04-22
shayuchaor 2020-04-20
fengyun 2020-04-17
htofly 2020-03-27
MrFuWen 2020-02-22
yuanye0 2019-12-09
laohyx 2019-11-03
shenxiuwen 2019-10-31
lixinghui0 2011-05-02
nimeijian 2019-10-21
hacker0ne 2018-09-30
agjllxchjy 2013-01-17