# react-native-commonicon

> react native icon component

Latest version **1.0.1** (published 2019-09-06) · 0 weekly downloads

## Install

```sh
npm install react-native-commonicon
pnpm add react-native-commonicon
yarn add react-native-commonicon
bun add react-native-commonicon
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-09-06 |
| First published | 2019-09-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | TophillZK |
| Maintainers | tophillzk |
| Keywords | react-component, react-native, ios, android, icon |

## Links

- npm: https://www.npmjs.com/package/react-native-commonicon
- Repository: https://github.com/TophillZK/react-native-commonicon
- Homepage: https://github.com/TophillZK/react-native-commonicon#readme
- Issues: https://github.com/TophillZK/react-native-commonicon/issues
- npm.io page: https://npm.io/package/react-native-commonicon

## Dependencies (2)

- [prop-types](https://npm.io/package/prop-types.md) ^15.6.2
- [react-native-vector-icons](https://npm.io/package/react-native-vector-icons.md) ^6.6.0

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [stockfish](https://npm.io/package/stockfish.md) — 27.0K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-09-06
- 1.0.0 — 2019-09-06

## README

# React Native Common Icon

## Getting started
```bash
yarn add react-native-commonicon
```

Generate ttf file
```bash
  if ("react-native-vector-icons" in package.json){
    react-native link
  }
  else{
    Insert into package.json
    "dependencies": {
    ...
    "react-native-vector-icons": "^6.6.0",
    ...
    }
    react-native link
    Delete react-native-vector-icons": "^6.6.0" from package.json
  }
```

## Usage
```javascript
import React from "react";
import {
  View,
  StyleSheet
} from "react-native";

import CommonIcon from 'react-native-commonicon';

export default class App extends React.Component {
  constructor(props) {
    super(props);
  }

  render() {
    return (
      <View style={styles.container}>
        <CommonIcon iconType='FontAwesome' iconName='search' title='Tophill' color='#313748' style={{margin:40}} onPress={()=>console.log('CommonIcon Text')}/>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff'
  }
});
```
### Component props
| Prop | Required | Type | default | description |
| ---- | ---- | ----| ---- | ---- |
| iconType | YES | string | none | Entypo,EvilIcons,Feather,FontAwesome,Foundation,Ionicons,MaterialIcons,MaterialCommunityIcons,Octicons,Zocial |
| iconName | YES | string | none | |
| touchable | NO | bool | true | |
| onPress | NO | func | none | |
| color | NO | string | '#FFF' | |
| size | NO | number | 20 | |
| title | NO |string | none | |
| titleSize | NO | number | 14 | |
| style | NO | array or object | none | |

---
_Source: https://npm.io/package/react-native-commonicon · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
