react-native-custom-icon

Medium Article: https://freakycoder.com/react-native-library-react-native-custom-icon-1ec0b734d691

MIT License

Downloads
2K
Stars
5
Committers
3

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

Property Type Default Description
name string null use this to set icon's name
color color null use this to set icon's color
size number 16 use this to change icon's size
config JSON null must use this to provide which config and data to use as IconConfig

Author

FreakyCoder, [email protected]

License

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

Package Rankings
Top 11.03% on Npmjs.org
Badges
Extracted from project README
Battle Tested ✅ Custom Icon Library for React Native. npm version npm License: MIT
Related Projects