react-native-simple-icons

1.0.0 • Public • Published

react-native-simple-icons

package version package downloads standard-readme compliant package license make a pull request

Simple Icon component shamelessly taken from react-native-elements

Table of Contents

Install

This project uses node and npm. First install react-native-vector-icons

# yarn 
yarn add react-native-vector-icons
# or with npm 
npm i --save react-native-vector-icons
 
# link 
react-native link react-native-vector-icons

Then:

$ npm install react-native-simple-icons
# OR 
$ yarn add react-native-simple-icons

Usage

import { Icon } from 'react-native-simple-icons'
 
<Icon
  name='rowing' />
 
<Icon
  name='g-translate'
  color='#00aced' />
 
<Icon
  name='sc-telegram'
  type='evilicon'
  color='#517fa4'
/>
 
<Icon
  reverse
  name='ios-american-football'
  type='ionicon'
  color='#517fa4'
/>
 
<Icon
  raised
  name='heartbeat'
  type='font-awesome'
  color='#f50'
  onPress={() => console.log('hello')} />

Contribute

  1. Fork it and create your feature branch: git checkout -b my-new-feature
  2. Commit your changes: git commit -am 'Add some feature'
  3. Push to the branch: git push origin my-new-feature
  4. Submit a pull request

License

MIT

Package Sidebar

Install

npm i react-native-simple-icons

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

7.59 kB

Total Files

6

Last publish

Collaborators

  • tiaanduplessis