@edvnz/native-icons
v1.0.4
Published
Edvnz native-icons are a wonderful collection of icons. It builds Icon Components from SVG icons in order to display, resize, and recolor them.
Downloads
10
Readme
Edvnz Icons
Edvnz native-icons are a wonderful collection of icons. It builds Icon Components from SVG icons in order to display, resize, and recolor them. It simplifies the use of the Icon Component in your React and React-Native applications.
Installation
$ npm install @edvnz/native-icons
# or
$ yarn add @edvnz/native-icons
Features
- Works in React and React Native
Props
| Prop name | Type | Description |
| :-------- | :------- | :----------------- |
| name
| string
| name of the icon |
| width
| string
| width of the icon |
| height
| string
| height of the icon |
| color
| string
| color of the icon |
Usage
import React, { useContext } from "react";
import { Icon } from "@edvnz/native-icons";
export const HomeScreen = () => {
return (
<div>
<Icon name="Alarm" width={40} height={40} color="#fff" />
</div>
)
}