Icon component for React Native & Expo with better font family management
A similar solution is also available in React Native Elements
First, install the library in your project by npm:
$ npm install native-icons
Or Yarn:
$ yarn add native-icons
- link
react-native-vector-icons
– follow instructions here
Connect the library with the project using ES6 import:
import Icon from 'native-icons'
IconsProvider allows you to set a global icon type for all icons. You don't need to use it. You can pass the type directly to the Icon component. After setting the provider and passing the type to Icon component, the type from context will be overwritten.
Name | Type | Default | Description | Available options |
---|---|---|---|---|
type | string | |
Icons font type | Icon Types |
The component extends react-native-vector-icons props and implements IconsProvider props
ant-design
entypo
evil-icons
feather
font-awesome
font-awesome-5
fontisto
foundation
ionicons
material-icons
material-community-icons
octicons
zocial
simple-line-icons
This project is licensed under the MIT License © 2020-present Jakub Biesiada