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
130 Stars 19 Forks MIT License 31 Commits 4 Opened issues

Description

Draw triangles in code with React Native

Services available

!
?

Need anything else?

Contributors list

# 396,416
JavaScr...
Python
21 commits
# 1,040
JavaScr...
React N...
React
iOS
3 commits
# 188,832
JavaScr...
travis-...
Go
k8s
1 commit
# 72,218
image-p...
Objecti...
JavaScr...
React N...
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.