Icon
Icon component provides a simple way to render images by requesting it from an icon set.
1
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
2
import { colors } from '../../styles';
3
4
<Icon name={'home'} size={24} color={colors.primary} />
5
<Icon name={'calendar'} size={24} color={colors.primary} />
6
<Icon name={'apps'} size={24} color={colors.primary} />
7
<Icon name={'layers'} size={24} color={colors.primary} />
8
<Icon name={'widgets'} size={24} color={colors.primary} />
9
<Icon name={'clipboard-text'} size={24} color={colors.primary} />
Copied!

Properties

Name
Type
Description
name
string
A name of icon registered in a specific pack.
size
int
Size of the icon
color
string
Color of the icon
...props
any
Accepts any props available in a specific pack.
Last modified 1yr ago
Copy link
Contents
Properties