npm.io
3.0.13 • Published 8 years ago

reactors-icons

Licence
ISC
Version
3.0.13
Deps
2
Size
92 kB
Vulns
0
Weekly
0

reactors-icons

Icons set for reactors. Uses fontello.

Install

Add the following to your package.json:

  "rnpm": {
    "assets": [
	     "./assets/fontello/font"
    ]
  }

Then:

yarn add reactors-icons
react-native link react-native-vector-icons

Don't forget to rebuild for mobile platforms.

Usage

import Icon from 'reactors-icons';
import iconConfig from './assets/fontello/config.json';

Icon.setSource({
  web: './assets/fonts/fontello.css',
  desktop: 'assets/fonts/fontello.css',
  mobile: {
    config: iconConfig
  }
});

<Icon name="user" size={32} />

Props

  • string name
  • number? size
  • string? color