Need help with react-native-triangle?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

Jpoliachik
134 Stars 20 Forks MIT License 31 Commits 4 Opened issues

Description

Draw triangles in code with React Native

Services available

!
?

Need anything else?

Contributors list

# 401,495
Objecti...
Java
21 commits
# 1,218
React N...
TypeScr...
React
iOS
3 commits
# 356,714
yarn
travis-...
protoc
HTML
1 commit
# 76,841
image-p...
Objecti...
React N...
face-de...
1 commit

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:


alt text

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.