0.0.3 • Published 5 years ago

react-native-custom-icon v0.0.3

Weekly downloads
155
License
MIT
Repository
github
Last release
5 years ago

Custom Icon Lib for React Native.

npm version npm Platform - Android and iOS License: MIT styled with prettier

Installation

Add the dependency:

Pure React Native:

npm i react-native-custom-icon

Peer Dependencies

IMPORTANT! You need install them.
"react": ">= 16.x",
"react-native": ">= 0.55.x",
"react-native-vector-icons": ">= 6.x.x"

Basic Usage

import MyIcon from "react-native-custom-icon";
import IcomoonConfig from "./assets/icomoon/selection.json";


<MyIcon name="fireworks" color="red" size={50} config={IcomoonConfig} />

Documentation

Read how to use react-native-custom-icon on Medium blog. DO NOT FORGET to implement your .ttf file on iOS and Android original files!

Configuration - Props

PropertyTypeDefaultDescription
namestringnulluse this to set icon's name
colorcolornulluse this to set icon's color
sizenumber16use this to change icon's size
configJSONnullmust use this to provide which config and data to use as IconConfig

Author

FreakyCoder, kurayogun@gmail.com

License

React Native Custom Icon Library is available under the MIT license. See the LICENSE file for more info.