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