ReactNative开发中使用react-native-vector-icons

来源:互联网 发布:黑马程序员就业班 编辑:程序博客网 时间:2024/06/11 16:56
  • 1、安装图标库
npm install react-native-vector-icons --save
  • 2、运行命令
react-native link
  • 3、查找自己的图标传送门
  • 4、使用
import Icon from 'react-native-vector-icons/FontAwesome';<Button transparent> <Icon name='gitlab' size={20} color="#f00"/></Button>
阅读全文
0 0
原创粉丝点击