![]()
一个图标组件,让你在React Native应用中更容易使用Hero图标作为组件。可以用react-native-svg道具轻松地进行定制。
如何使用它
1.安装并导入。
# Yarn
$ yarn add @nandorojo/heroicons react-native-svg
# NPM
$ npm i @nandorojo/heroicons react-native-svg
import * as React from 'react';
import { Text, View, ScrollView, StyleSheet } from 'react-native';
import { HeroOutline, HeroSolid, HeroSolid20, /*... */ } from '@nandorojo/heroicons'
2.使用英雄图标作为组件。
<HeroOutline.Calendar height="24" width="24" color="#8A8F98" />
预览
![]()
The postHero Icons For React Nativeappeared first onReactScript.