# Icon

![](/files/-MGxFb4FK_XSTXJGuliv)

Icon component provides a simple way to render images by requesting it from an icon set.

```jsx
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import { colors } from '../../styles';

<Icon name={'home'} size={24} color={colors.primary} />
<Icon name={'calendar'} size={24} color={colors.primary} />
<Icon name={'apps'} size={24} color={colors.primary} />
<Icon name={'layers'} size={24} color={colors.primary} />
<Icon name={'widgets'} size={24} color={colors.primary} />
<Icon name={'clipboard-text'} size={24} color={colors.primary} />
```

## 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. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.reactnativestarter.com/components/icon.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
