当前位置: 首页>移动开发>正文

React Native使用react-native-vector-icons做字体图标

参考链接:

https://www.npmjs.com/package/react-native-vector-icons#windows-via-react-native-windows

https://oblador.github.io/react-native-vector-icons/

React Native使用react-native-vector-icons做字体图标,React Native使用react-native-vector-icons做字体图标_Text,第1张

React Native使用react-native-vector-icons做字体图标,React Native使用react-native-vector-icons做字体图标_Text_02,第2张

 

import { Text, View } from 'react-native'
import Icon from 'react-native-vector-icons/AntDesign'

export default function MyIcon(props) {
  let { name, className, title } = props
  return (
    <View>
      <Text>{name}2</Text>
      <Icon name="pluscircle" size={30} color="red" />
    </View>
  )
}

 




https://www.xamrdz.com/mobile/4y91937313.html

相关文章: