# react-native-triangle

> draw triangle views in react native

Latest version **0.0.9** (published 2017-08-29) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2017-08-29 |
| First published | 2015-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 141 |
| Author | Justin Poliachik |
| Maintainers | jpoliachik |
| Keywords | triangle, react-native |

## Links

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

## Dependencies (2)

- [prop-types](https://npm.io/package/prop-types.md) ^15.5.10
- [create-react-class](https://npm.io/package/create-react-class.md) ^15.6.0

## Recent versions

- 0.0.9 (latest) — 2017-08-29
- 0.0.8 — 2017-07-14
- 0.0.7 — 2017-04-18
- 0.0.6 — 2016-05-16
- 0.0.5 — 2015-10-31
- 0.0.4 — 2015-10-31
- 0.0.3 — 2015-10-31
- 0.0.2 — 2015-10-31
- 0.0.1 — 2015-10-30

## README

# react-native-triangle
Draw triangles in code with React Native

A class to encapsulate the CSS triangle hack. Based off the output of the triangle generator http://apps.eky.hk/css-triangle-generator/ but modified for React Native syntax.

## Installation
`npm install react-native-triangle --save`

Then

`import Triangle from 'react-native-triangle';`

## Usage
Sample JSX will produce the triangle below:
```
<Triangle
  width={90}
  height={150}
  color={'#D80016'}
  direction={'right'}
/>
```
![alt text](https://raw.githubusercontent.com/Jpoliachik/react-native-triangle/master/sampletriangle.png "react-native-triangle")

The width and height act as bounds to fit the triangle into. 

### Supported Directions
- up
- right
- down
- left
- up-left
- up-right
- down-left
- down-right

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